Buy or sell any tokenized asset with USDC, in an API call
collectionId
ready.
orders.create
, orders.update
, and orders.read
scopes enabled. More info on creating API keys here.orders.read
scope - use the clientSecret
from order creation for subsequent operations.
See the Server or Client Guide for more information.Wallet
Testnet Balance
0x036CbD53842c5426634e7929541eC2318f3dCF7e
0x14196F08a4Fa0B66B7331bC40dd6bCd8A1dEeA9F
Setup your Python environment
Set keys in .env
.env
file:CROSSMINT_API_KEY
, COLLECTION_ID
are found from the Developer Console. See PrerequisitesPAYER_ADDRESS
is your wallet address that contains USDC.EMAIL_ADDRESS
is where you’ll receive your NFT in a new Crossmint wallet that you can access later.Create order with USDC payment
Receive Payment
serializedTransaction
returned in the previous step and paste it below.env
fileStatus of order
.env
file.email
: The email address where the tokenized asset will be delivered in a Crossmint wallet.
Instead of an email, a walletAddress
field can be used to deliver the asset to a specific wallet address.method
: The blockchain network (base-sepolia
for testnet)currency
: The payment currency (usdc
)payerAddress
: The wallet address that will send the USDC paymentcollectionLocator
: Identifies the collectionclientSecret
: A unique token used for authenticating subsequent requests for this orderorder
: The order details including the order ID and statusorder_id
and client_secret
as parameterspayment
: Waiting for or processing paymentdelivery
: NFT is being deliveredcompleted
: Order is successfully completed