Skip to main content
POST
/
prepare-transactions
/
mintToken
mintToken
curl --request POST \
  --url https://api.sandbox.brickken.com/prepare-transactions/mintToken \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "method": "mintToken",
  "signerAddress": "0x742d35Cc6634C0532925a3b8D4C9db96c4b4d8b",
  "chainId": "aa36a7",
  "tokenSymbol": "EXMPL",
  "userToMint": [
    {
      "investorEmail": "investor@example.com",
      "investorAddress": "0x1111111111111111111111111111111111111111",
      "amount": "100",
      "needWhitelist": true
    }
  ]
}
'
{
  "transactions": [
    {}
  ],
  "txId": "<string>"
}
Prepares unsigned transactions for minting tokens to specified users. This endpoint is equivalent to calling /prepare-transactions with method=mintToken.

Authorizations

x-api-key
string
header
required

Body

application/json

Request body for mintToken. userToMint must contain at least one recipient.

method
enum<string>
required

Required. Must be mintToken.

Available options:
mintToken
signerAddress
string
required

Required. Wallet address that will sign the prepared transaction.

chainId
string
required

Required. Blockchain network identifier. Hex format is recommended, for example Sepolia aa36a7.

tokenSymbol
string
required

Required. Token symbol. Must be 2 to 5 uppercase letters or numbers.

userToMint
object[]
required

Required. Users to mint tokens to.

Minimum array length: 1
gasLimit
string

Optional. Gas limit override. If omitted, the API estimates gas automatically.

privateRpcUrl
string

Optional. Private RPC URL override. If omitted, the API uses the configured RPC for chainId.

nonce
integer

Optional. Nonce override. If omitted, the API reads the pending nonce from the RPC.

Response

200 - application/json

Successful response

transactions
object[]
required
txId
string
required