BATCH - MINT to an array of wallets (validation || external Agent wallet)

POST {{base_url_servicing}}/tokens/{{token_id}}/actions/validate/mint

https://docs.tokeny.com/reference/validateminttokentowallets

https://docs.tokeny.com/docs/minting-tokens-to-qualified-investors#mint-tokens-to-an-array-of-wallets-with-an-external-wallet

This Agent endpoint is to be used when an external Agent wallet is used (MetaMask...) to sign transactions. This endpoint verifies that the transaction will be successful on the blockchain. It returns the transactionData that you will need to send onchain. In code, the sender should be agent wallet and the receiver the token smart contract.

Parameters

  • token_id: The identifier of the T-REX
  • jwt: The authentication token
  • ethereumNetwork: The network on which to emit the transactions. Use MUMBAI for the testing environment.
  • transactions: The list of transactions. One object per minting operation, composed of:
    • address: The wallet address of the receiver
    • amount: The amount of tokens to mint, with the decimals. For example, if your token has 2 decimals and you want to mint 100 tokens, input 100.00.

Response

JSON

{
   "gasEstimation":":gas_estimation",
   "transactionData":":data"
}

  • StartFragmentWhere:
    • gas_estimation is an estimation of the cost of the transaction
    • data is the payload of the transaction to be emitted on the blockchain, using your own wallet.EndFragment

Request Body

{"ethereumNetwork"=>"{{network}}", "transactions"=>[{"address"=>"0x0de68aae8b95cf79352dcb01477b52d95e395297", "amount"=>"557"}]}

RESPONSES

status: OK

{"gasEstimation":"220146","transactionData":"0x68573107000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000001000000000000000000000000125c391b91abc9450ff07aacf381d3b9b310eb000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000115c","agentWallet":"0x28e1e589B5d4753328cF049dB0dEDb0c85b89785"}