Contract deploy transaction

Creates a transaction for deploying a contract.

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

Kaia Network Chain ID (1001 or 8217)

Request Body schema: application/json
from
required
string

Kaia account address to send transaction

value
string

KAIA converted into kei

input
required
string

Data that is sent along with the transaction and used for the execution.

nonce
integer <int64>

Unique identifier for the transactions being sent.(By entering 0, the nonce will be automatically determined.)

gas
integer <int64>
Default: 9000000

The maximum computational units required to execute a transaction (By entering 0, it will be set to default value)

submit
boolean

To send or not sent transaction to Kaia

Responses
200

The request is successful.

400

The request is not valid.

post/v2/tx/contract/deploy
Request samples
application/json
{
  • "from": "0x60d0902c428D0E197F97a756011Fd4893C1E57B0",
  • "value": "0x0",
  • "input": "0x60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582059344095f4f4ad6d1a407f2f20de3e3e65e8ead0c1aaf64728546db62db6f76f0029",
  • "nonce": 0,
  • "gas": 0,
  • "submit": true
}
Response samples
application/json
{
  • "from": "0x60d0902c428d0e197f97a756011fd4893c1e57b0",
  • "gas": 9000000,
  • "gasPrice": "0x5d21dba00",
  • "input": "0x60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582059344095f4f4ad6d1a407f2f20de3e3e65e8ead0c1aaf64728546db62db6f76f0029",
  • "nonce": 1398,
  • "rlp": "0x28f901ac8205768505d21dba008389544080809460d0902c428d0e197f97a756011fd4893c1e57b0b9013a60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582059344095f4f4ad6d1a407f2f20de3e3e65e8ead0c1aaf64728546db62db6f76f00298080f847f8458207f5a01653c932c3953f110da324b35e20d50208fb5f9b153ac33a53609ea4f7d04979a02008a170136f151ab695cdf55cdce9764d76dbacd863f8dbfbfee4c65a66c68c",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0xc3e406236e1a515ab3a837348aa6693f387e3a0f8e7f98622722bb2e1ccc9718",
  • "typeInt": 40,
  • "value": "0x0"
}