Transaction using global fee delegation RLP

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, use getRLPEncodingForSignature(), and getRLPEncoding() to create TxHashRLP. For SigRLP, you sign with the private key of the from account, For more details on SigRLP and TxHashRLP by each transaction type, please refer to Kaia Docs.

Transaction type TxTypeEthereumAccessList and TxTypeEthereumDynamicFee supported from Klaytn v1.8.0 are not available yet.

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

Kaia Network Chain ID (1001 or 8217)

Request Body schema: application/json
rlp
required
string

The Kaia RLP formats SigRLP or TxHashRLP are accepted as RLP values and only (partial) fee delegation transaction type is allowed.

submit
boolean

Shows whether to send the transaction to Kaia

feeRatio
integer <int64> <= 99

The ratio of the gas fee to be delegated. When it's empty or 0, the entire fee will be delegated.

Responses
200

The request is successful.

400

The request is not valid.

post/v2/tx/fd/rlp
Request samples
application/json
{
  • "rlp": "0x2af90209808505d21dba0083895440808094c48cd8576df1c5cf9e8cc054c2c9fa0f1e2b6796b9013a60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582059344095f4f4ad6d1a407f2f20de3e3e65e8ead0c1aaf64728546db62db6f76f0029801480f847f8458207f6a0226cf7995a62e1c47d3103a4203f8d1249301bf253109626604f0b606ec4aef6a03b70ab372b7a536a61baad6d3f5ab8bd5768bd68301e4c8d1934fb958358bde5941b71a63903e35371e2fc41c6012effb99b9a2c0ff847f8458207f5a0e1aa7d53d64a19579d71cce49a3c0cd9765285bfcfd4627caeea0b6f9a5b7f03a07242e172fb756bb56a03f88f4b6824bb57401f124f3bc0d12016fd140da2ee91",
  • "submit": true
}
Response samples
application/json
{
  • "feePayer": "0x1b71a63903e35371e2fc41c6012effb99b9a2c0f",
  • "from": "0x60d0902c428d0e197f97a756011fd4893c1e57b0",
  • "gas": 9000000,
  • "gasPrice": "0x5d21dba00",
  • "input": "0x60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582059344095f4f4ad6d1a407f2f20de3e3e65e8ead0c1aaf64728546db62db6f76f0029",
  • "nonce": 1418,
  • "rlp": "0x29f9020a82058a8505d21dba008389544080809460d0902c428d0e197f97a756011fd4893c1e57b0b9013a60806040526000805534801561001457600080fd5b50610116806100246000396000f3006080604052600436106053576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306661abd14605857806342cbb15c146080578063d14e62b81460a8575b600080fd5b348015606357600080fd5b50606a60d2565b6040518082815260200191505060405180910390f35b348015608b57600080fd5b50609260d8565b6040518082815260200191505060405180910390f35b34801560b357600080fd5b5060d06004803603810190808035906020019092919050505060e0565b005b60005481565b600043905090565b80600081905550505600a165627a7a7230582059344095f4f4ad6d1a407f2f20de3e3e65e8ead0c1aaf64728546db62db6f76f00298080f847f8458207f5a0fdc20476198af35bc810634a1c59e7aaaa9fad6c18fd4930f3f8911dd6fe8ee9a0159c0632fd78b11b64eb14b497f980533572b0f477428fbd9dbabe78c107b1cf941b71a63903e35371e2fc41c6012effb99b9a2c0ff847f8458207f5a0018f2bbb4db7b2bc68477fcda3fe9d9e53d35ea7a0686fba81e8863ab62ba3d9a038c2b7ac11a5478d3599ffc96b44c6322503d81ab86b8ed872f167150c47b522",
  • "signatures": [
    ],
  • "status": "Submitted",
  • "transactionHash": "0x3da3fda3b70e191075fa2e89e6c5a06de632e5f7ed330f904ecebd35ca8119ac",
  • "typeInt": 41,
  • "value": "0x0"
}