Calls contract

Can parse data within the deloyed contract or decide whether the transaction can be executed.

Request
Security:
header Parameters
x-chain-id
required
string

Kaia Network Chain ID (1001 or 8217)

Request Body schema: application/json
from
string

Kaia account address to send transaction

value
string

KAIA converted into kei

to
string

Contract address

object (ContractCallData)

Calls contract data

gas
integer <int64>

The maximum computational units required to execute a transaction

Responses
200

The request is successful.

post/v2/tx/contract/call
Request samples
application/json
{
  • "from": "0x60d0902c428D0E197F97a756011Fd4893C1E57B0",
  • "value": "0x0",
  • "to": "0x358b2381fcf00d2cb2daa7d89032b12e140b6058",
  • "data": {
    },
  • "gas": 0
}
Response samples
application/json
{
  • "data": "0x70a0823100000000000000000000000085b98485444c89880cd9c48807cef727c296f2da",
  • "result": "0x00000000000000000000000000000000000000000000003635c9adc5dea00000"
}