buildMintTransaction
The buildMintTransaction
function is used to get an unsigned transaction for minting an NFT.
Before using them, make sure to obtain a Client API Key from Coinbase Developer Platform.
Usage
code
import { setOnchainKitConfig } from '@coinbase/onchainkit';
import { buildMintTransaction } from '@coinbase/onchainkit/api';
const response = await buildMintTransaction({
mintAddress: '0x...',
takerAddress: '0x...',
tokenId: '1',
quantity: 1,
network: 'networks/base-mainnet',
});
Returns
Promise<BuildMintTransactionResponse>