Multicall contract

Multiple call contract

post
Body
callsobject[]Required
Responses
application/json
objectOptional
post
POST /contracts/multicall-contract HTTP/1.1
Host: alephium.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 597

{
  "calls": [
    {
      "group": 0,
      "worldStateBlockHash": "bdaf9dc514ce7d34b6474b8ca10a3dfb93ba997cb9d5ff1ea724ebe2af48abe5",
      "txId": "503bfb16230888af4924aa8f8250d7d348b862e267d75d3147f1998050b6da69",
      "address": "tgx7VNFoP9DJiFMFgXXtafQZkUvyEdDHT9ryamHJYrjq",
      "methodIndex": 0,
      "args": [
        {
          "type": "U256",
          "value": "0"
        }
      ],
      "interestedContracts": [
        "uomjgUz6D4tLejTkQtbNJMY8apAjTm1bgQf7em1wDV7S"
      ],
      "inputAssets": [
        {
          "address": "1AujpupFP4KWeZvqA7itsHY9cLJmx4qTzojVZrg8W9y",
          "asset": {
            "attoAlphAmount": "3000000000000000000",
            "tokens": [
              {
                "id": "20aa1fcc865087d7788302d087e4bc76691218ce5d5013dd1cedaabfac19cca4",
                "amount": "3000000000"
              }
            ]
          }
        }
      ]
    }
  ]
}
{
  "results": [
    {
      "type": "CallContractSucceeded",
      "returns": [
        {
          "type": "U256",
          "value": "0"
        }
      ],
      "gasUsed": 20000,
      "contracts": [
        {
          "address": "vYZdgzNHHp7Qh9U5Rrv5H65eSJCGQTXEC4yuQCZ7mosA",
          "bytecode": "00010700000000000118",
          "codeHash": "c49d951065f85d0c673d33930e8476240c010a52313f99889ae06d9f0d92d2f9",
          "initialStateHash": "e195a4e597e62a6802a456224008b896566b7c961023954fab808a0f83d8ad63",
          "immFields": [
            {
              "type": "U256",
              "value": "1000000000000000000"
            }
          ],
          "mutFields": [
            {
              "type": "U256",
              "value": "2000000000000000000"
            }
          ],
          "asset": {
            "attoAlphAmount": "2000000000000000000",
            "tokens": [
              {
                "id": "bd165d20bd063c7a023d22232a1e75bf46e904067f92b49323fe89fa0fd586bf",
                "amount": "2000000000"
              }
            ]
          }
        }
      ],
      "txInputs": [
        "uomjgUz6D4tLejTkQtbNJMY8apAjTm1bgQf7em1wDV7S"
      ],
      "txOutputs": [
        {
          "type": "ContractOutput",
          "hint": 1,
          "key": "798e9e137aec7c2d59d9655b4ffa640f301f628bf7c365083bb255f6aa5f89ef",
          "attoAlphAmount": "1000000000000000000",
          "address": "uomjgUz6D4tLejTkQtbNJMY8apAjTm1bgQf7em1wDV7S",
          "tokens": [
            {
              "id": "2d11fd6c12435ffb07aaed4d190a505b621b927a5f6e51b61ce0ebe186397bdd",
              "amount": "42000000000000000000"
            },
            {
              "id": "bd165d20bd063c7a023d22232a1e75bf46e904067f92b49323fe89fa0fd586bf",
              "amount": "1000000000000000000000"
            }
          ]
        }
      ],
      "events": [
        {
          "blockHash": "bdaf9dc514ce7d34b6474b8ca10a3dfb93ba997cb9d5ff1ea724ebe2af48abe5",
          "contractAddress": "vSxdLL2kE3o6vJBdKkdgmS3W39G3ZEmFHpo2y1jnbzBq",
          "eventIndex": 1,
          "fields": [
            {
              "type": "Address",
              "value": "1AujpupFP4KWeZvqA7itsHY9cLJmx4qTzojVZrg8W9y"
            },
            {
              "type": "U256",
              "value": "10"
            }
          ]
        }
      ],
      "debugMessages": [
        {
          "contractAddress": "uomjgUz6D4tLejTkQtbNJMY8apAjTm1bgQf7em1wDV7S",
          "message": "Debugging!"
        }
      ]
    }
  ]
}