Create transaction using rlp (SigRLP or TxHashRLP). The rlp from the transaction API of Wallet API is in the TxHashRLP format, which includes signature. You can create a SigRLP without signature easily using caver.
If you want to create a SigRLP for each transaction method on caver, usegetRLPEncodingForSignature()
, and getRLPEncoding()
to create TxHashRLP. For SigRLP, you sign with the private key of the from
account, as long as the accounts have been created in the account pool. For more details on SigRLP and TxHashRLP by each transaction type, please refer to Kaia Docs.
To use this API, you need two x-krn
for account-pool
and feepayer-pool
.
The values for x-krn
are written separated with a comma, as shown below.
x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}}
Transaction type TxTypeEthereumAccessList
and TxTypeEthereumDynamicFee
supported from Klaytn v1.8.0 are not available yet.
The request is successful.
The request is not valid.
{- "rlp": "0x29f9020a8205a98505d21dba008389544080809460d0902c428d0e197f97a756011fd4893c1e57b0b9013a60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582059344095f4f4ad6d1a407f2f20de3e3e65e8ead0c1aaf64728546db62db6f76f00298080f847f8458207f5a0cd1945938558bfa23807007ebb5032b7f89257af256e2255758c026f6aac2f33a040723c4123312673ef6afec746f5fb43744fac5bc96998d954a43cd27f0947f6940e916319466895015cbcb453a1ff8c4134feb902f847f8458207f5a06ff5ad95e521b7aeb3698043bc570362c07efa42bec1888184380e9ce9577ee4a037466e88813ff38a922709b53c9956246513343a74a78f359f470e09c4a023e9",
- "submit": true,
- "feePayer": "0x48C71A602AC5284b9A501457e4340E16D8d40C3d"
}
{- "feePayer": "0x0e916319466895015cbcb453a1ff8c4134feb902",
- "feeRatio": 20,
- "from": "0x60d0902c428d0e197f97a756011fd4893c1e57b0",
- "gas": 9000000,
- "gasPrice": "0x5d21dba00",
- "input": "0x60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582059344095f4f4ad6d1a407f2f20de3e3e65e8ead0c1aaf64728546db62db6f76f0029",
- "nonce": 1449,
- "rlp": "0x2af9020b8205a98505d21dba008389544080809460d0902c428d0e197f97a756011fd4893c1e57b0b9013a60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582059344095f4f4ad6d1a407f2f20de3e3e65e8ead0c1aaf64728546db62db6f76f0029801480f847f8458207f5a0b3d3b137bd228e0521575d8bc5aba9b680c4c35b8980beec22865eaed6d4b48ca06e89889da57b814a58eb2e144f40a0e053160e89206cc4b64218ebd31a84351e940e916319466895015cbcb453a1ff8c4134feb902f847f8458207f5a05738265794bdb25efd8cad1916b4a2359fbc89d806b0327bbcea28d4e52b6225a0078fd21db43b9ae09913f378aab7c5c767de4956c399cd84ea472d481d1f7a2f",
- "signatures": [
- {
- "R": "0xb3d3b137bd228e0521575d8bc5aba9b680c4c35b8980beec22865eaed6d4b48c",
- "S": "0x6e89889da57b814a58eb2e144f40a0e053160e89206cc4b64218ebd31a84351e",
- "V": "0x7f5"
}
], - "status": "Submitted",
- "transactionHash": "0x0853618b8b48c5053a5a2b96b9bd143d4d7aaf8d14e204f885f228fb9a01a422",
- "typeInt": 42,
- "value": "0x0"
}