Skip to main content
POST
/
tenant
/
{tenantId}
/
token_management
/
deployed_contract
/
mint
Initiates a mint operation for a deployed token, creating a transaction proposal if required.
curl --request POST \
  --url https://api.example.com/tenant/{tenantId}/token_management/deployed_contract/mint \
  --header 'Content-Type: application/json' \
  --data '
{
  "deployedTokenConfigurationId": 512,
  "recipientWalletTenantId": 2048,
  "actorUserId": "9f060a6b-1571-4a2f-8cfb-3fc6bf5a4e51",
  "tenantId": 1024,
  "assetUsdBaseRates": {
    "USD": 1
  },
  "smartContractTemplateMethodRequestModel": {
    "name": "mint",
    "parameters": [
      {
        "name": "to",
        "value": "0x1234567890abcdef1234567890abcdef12345678",
        "blockchainType": "address",
        "blockchainName": "Ethereum",
        "order": 0
      },
      {
        "name": "amount",
        "value": "1000000000000000000",
        "blockchainType": "uint256",
        "blockchainName": "Ethereum",
        "order": 1
      }
    ]
  }
}
'
{
  "isSuccess": true,
  "isFailure": false,
  "error": null,
  "value": {
    "id": 42,
    "name": "Example"
  }
}

Path Parameters

tenantId
integer<int64>
required

Identifier of the tenant.

Body

application/json

Request containing mint operation details.

Request to mint new tokens to a recipient wallet.

deployedTokenConfigurationId
integer<int64>

Identifier of the deployed token configuration to mint.

Example:

512

recipientWalletTenantId
integer<int64>

Identifier of the wallet-tenant relationship that will receive the minted tokens.

Example:

2048

actorUserId
string

Identifier of the user initiating the mint operation.

Example:

"9f060a6b-1571-4a2f-8cfb-3fc6bf5a4e51"

tenantId
integer<int64>

Identifier of the tenant performing the mint operation.

Example:

1024

assetUsdBaseRates
object

Exchange rates for converting asset values to USD.

Example:
{ "USD": 1 }
smartContractTemplateMethodRequestModel
object

Smart contract method invocation details for the mint operation.

Example:

"{\"name\": \"mint\", \"parameters\": [...]}"

Response

200 - application/json

Mint operation initiated successfully.

Wrapper for API operation results containing success status, error information, and return value.

isSuccess
boolean

True if the operation completed successfully, false otherwise.

Example:

true

isFailure
boolean

True if the operation failed, false otherwise.

Example:

false

error
object

Error information returned when the operation fails.

Example:
{
"code": "ValidationError",
"message": "The request parameters failed validation.",
"info": [
"The Name field is required.",
"The Id field must be greater than 0."
]
}
value
object

The result value returned when the operation is successful.

Example:
{
"deployedTokenConfigurationTransactionPublicId": "550e8400-e29b-41d4-a716-446655440000"
}