v1

latestOpenAPI 3.0.32026-07-2659172194.6 KB
crafting

Sign a crafting payload

Sign a crafting payload

post/v1/chains/{chain_name}/crafting/sign

Path parameters

chain_namestring required

The name of chain

Example:imtbl-zkevm-testnet

The name of chain

Request body

reference_idstring required

The id of this request in the system that originates the crafting request, specified as a 32 byte hex string

expires_atstring date-time required

The expiration time of the request

Example request

{
  "multi_caller": {
    "address": "0xe9b00a87700f660e46b6f5deaa1232836bcc07d3",
    "name": "Multicaller",
    "version": "1"
  },
  "reference_id": "67f7d464b8f04f6a9a3b8d3cb4a21af0",
  "calls": [
    {
      "target_address": "0xe9b00a87700f660e46b6f5deaa1232836bcc07d3",
      "function_signature": "mint(address,uint256)",
      "function_args": [
        "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e",
        "1"
      ]
    }
  ],
  "expires_at": "2022-08-16T17:43:26.991388Z"
}

Response

200 response

signer_addressstring required

An Ethereum address

signaturestring required

The signature of the request

Example response

{
  "signer_address": "0xe9b00a87700f660e46b6f5deaa1232836bcc07d3",
  "signature": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e"
}