컨트랙트 배포 트랜잭션

컨트랙트를 배포하는 트랜잭션을 생성합니다.

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

Kaia 네트워크 체인 ID (1001 또는 8217)

Request Body schema: application/json
from
required
string

트랜잭션을 보내는 Kaia 계정 주소

value
string

kei 단위로 환산된 KAIA

input
required
string

보내는 트랜잭션에 첨부되며 트랜잭션 실행에 사용되는 데이터

nonce
integer <int64>

보내는 트랜잭션을 식별하는 유일한 값 (0을 넣으면 nonce 를 자동으로 선택)

gas
integer <int64>
Default: 9000000

해당 트랜잭션을 보낼 때 필요할 것으로 예상되는 최대 gas양. (0일때는 기본값 사용)

submit
boolean

해당 트랜잭션을 Kaia에 전송할지 여부

Responses
200

요청이 성공적입니다.

400

요청이 유효하지 않습니다.

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"
}