Tokenization

Get deterministic address for contract deployment

Get a deterministic address for contract deployment. The address is derived from the contract's bytecode and provided salt. This endpoint is used to get the address of a contract that will be deployed in the future.

post/tokenization/multichain/deterministic_address

Request

Headers

Idempotency-Keystring

A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.

Request body

chainDescriptorstring required

The base asset identifier of the blockchain (legacyId) to calculate deterministic address

templateIdstring uuid required

The template identifier

saltstring required

The salt to calculate the deterministic address. Must be a number between 0 and 2^256 -1, for it to fit in the bytes32 parameter

Example request

{
  "chainDescriptor": "ETH",
  "templateId": "b70701f4-d7b1-4795-a8ee-b09cdb5b850d",
  "initParams": [
    {
      "internalType": "string",
      "name": "name",
      "type": "string",
      "value": "name"
    },
    {
      "internalType": "string",
      "name": "symbol",
      "type": "string",
      "value": "symbol"
    },
    {
      "components": [
        {
          "internalType": "bool",
          "name": "_isMintable",
          "type": "bool"
        }
      ],
      "internalType": "struct MyStruct",
      "value": [
        {
          "internalType": "bool",
          "name": "_isMintable",
          "type": "bool",
          "value": false
        }
      ]
    }
  ],
  "salt": "123456789"
}

Response

Deterministic address for contract deployment

addressstring required

The deployable address

Example response

{
  "address": "0x1234567890abcdef1234567890abcdef12345678"
}

Changes

No recorded changes to this operation across all 1 revision of this API.