Skip to main content
POST
/
BuildMintTransaction
Build Mint Transaction
curl --request POST \
  --url https://api.base.org/v1/BuildMintTransaction \
  --header 'Content-Type: application/json' \
  --data '
{
  "mintAddress": "0x123...",
  "takerAddress": "0x456...",
  "tokenId": "1",
  "quantity": 1,
  "network": "networks/base-mainnet"
}
'
{
  "to": "<string>",
  "data": "<string>",
  "value": "<string>",
  "gasLimit": "<string>"
}

Body

application/json
mintAddress
string
required

The NFT contract address to mint from

Example:

"0x123..."

takerAddress
string
required

The address of the NFT recipient

Example:

"0x456..."

tokenId
string
required

The token ID of the NFT to be minted

Example:

"1"

quantity
integer
required

The number of NFTs to mint

Example:

1

network
string
required

The network to mint on

Example:

"networks/base-mainnet"

Response

Successful response

to
string

The contract address to send the transaction to

data
string

The encoded transaction data

value
string

The amount of native currency to send with the transaction

gasLimit
string

The gas limit for the transaction