Tweed Docs
  • Welcome to Tweed
    • What Can Tweed Do?
  • Getting Started
    • Embedded Wallets | WaaS
    • Token Checkout | Payments
      • Flow of Funds: Purchase to Settlement
      • Token Checkout
      • Legacy Token Checkout
        • Basic Checkout Integration
        • Checkout + WaaS + Auth
        • Features
          • Payment links
          • Whitelist
          • Flow of Funds
          • Apple & Google Pay
          • AML & KYC Policy Overview
  • Developer Tools
    • Tweed SDKs
      • core-react
        • useAuth
        • useWallet
        • useTweed
        • usePayments
        • useWeb3
      • core-js
      • core-vue
      • Payments SDKs (v1)
        • Frontend SDKs (Payments)
        • Backend SDK (Payments)
        • How to set up your smart contract for Tweed
        • Tezos chain considerations
    • Management Dashboard
      • Create platform
      • Create application
        • UI Customization
    • Webhooks
      • Checkout Webhooks
    • API
      • API (V1)
      • API (V2)
        • Authorization
        • API reference
          • Contracts
            • Add
            • Add contract function
            • Contract
          • Payouts
            • Add
            • Payout
          • Items
            • Add
            • All
              • Contract
                • Count
              • Payout
                • Count
          • Assets
            • Blockchain
            • All
              • Blockchains
          • Blockchains
            • Multiple
            • Native asset
          • Audit event mappings
          • Platform webhooks
            • Set active
          • Tickets
        • Specification
    • External Integrations
      • Wagmi connector
      • Onramp to Crypto
    • Example Projects
    • Supported Blockchains
    • Pricing
  • Products
    • WaaS
    • Payments
Powered by GitBook
On this page
  • Our claimer needs to have a minter role in the contract.
  • In case you want to get settled in native crypto currency, the mint function needs to be payable.
  1. Developer Tools
  2. Tweed SDKs
  3. Payments SDKs (v1)

How to set up your smart contract for Tweed

Our claimerneeds to have a minter role in the contract.

Your smart contract have to allow Tweed's "claimer" smart contract to mint assets (Tokens or NFTs).

In case you want to get settled in native crypto currency, the mint function needs to be payable.

If you expect Tweed to settle (pay you) with native cryptocurrency (ETH, MATIC, BASE, etc..), then the mint function in your contract has to be payable thus allowing Tweed to send crypto directly along with the mint request.

Your contract will be able to validate that it got the crypto funds.

PreviousBackend SDK (Payments)NextTezos chain considerations

Last updated 8 months ago