Fee Delegation
FeeDelegatedValueTransfer
FeeDelegatedValueTransfer
represents a fee delegated value transfer transaction. The transactionObject
can have properties below to create a FeeDelegatedValueTransfer
transaction.
FeeDelegatedValueTransfer
has the properties below as its member variables. Properties marked as optional
refer to properties that can be optionally defined in transactionObject
when the user creates FeeDelegatedValueTransfer
transaction.
NOTE: You can create an instance of FeeDelegatedValueTransfer
from RLP-encoded strings. Please refer to the below example. NOTE: caver.transaction.feeDelegatedValueTransfer.create
is supported since caver-js v1.6.1.
NOTE: As of caver-js v1.8.1-rc.4, creating transactions is only supported using the create
function. If you've been creating transactions using a constructor like new caver.transaction.feeDelegatedValueTransfer({...})
, please change it to caver.transaction.feeDelegatedValueTransfer.create({...})
.
properties
Name | Type | Description |
---|---|---|
value | string | The amount of KLAY in peb to be transferred. You can use |
from | string | The address of the sender. |
to | string | The account address that will receive the transferred value. |
gas | string | The maximum amount of transaction fee the transaction is allowed to use. |
signatures | Array | (optional) An array of signatures. |
feePayerSignatures | Array | (optional) An array of feePayerSignatures. |
feePayer | string | (optional) The address of fee payer. |
nonce | string | (optional) A value used to uniquely identify a sender’s transaction. If omitted, |
gasPrice | string | (optional) A multiplier to get how much the sender will pay in tokens. If omitted, |
chainId | string | (optional) The chain id of the Klaytn blockchain platform (abbreviated as "Klaytn" for the rest of this document). If omitted, |
Example
FeeDelegatedValueTransferMemo
FeeDelegatedValueTransferMemo
represents a fee delegated value transfer memo transaction. The transactionObject
can have properties below to create a FeeDelegatedValueTransferMemo
transaction.
FeeDelegatedValueTransferMemo
has the properties below as its member variables. Properties marked as optional
refer to properties that can be optionally defined in transactionObject
when the user creates FeeDelegatedValueTransferMemo
transaction.
NOTE: You can create an instance of FeeDelegatedValueTransferMemo
from RLP-encoded strings. Please refer to the below example. NOTE: caver.transaction.feeDelegatedValueTransferMemo.create
is supported since caver-js v1.6.1.
NOTE: As of caver-js v1.8.1-rc.4, creating transactions is only supported using the create
function. If you've been creating transactions using a constructor like new caver.transaction.feeDelegatedValueTransferMemo({...})
, please change it to caver.transaction.feeDelegatedValueTransferMemo.create({...})
.
properties
Name | Type | Description |
---|---|---|
value | string | The amount of KLAY in peb to be transferred. You can use |
from | string | The address of the sender. |
to | string | The account address that will receive the transferred value. |
input | string | Data attached to the transaction. The message should be passed to this property. |
gas | string | The maximum amount of transaction fee the transaction is allowed to use. |
signatures | Array | (optional) An array of signatures. |
feePayerSignatures | Array | (optional) An array of feePayerSignatures. |
feePayer | string | (optional) The address of fee payer. |
nonce | string | (optional) A value used to uniquely identify a sender’s transaction. If omitted, |
gasPrice | string | (optional) A multiplier to get how much the sender will pay in tokens. If omitted, |
chainId | string | (optional) The chain id of the Klaytn. If omitted, |
Example
FeeDelegatedAccountUpdate
FeeDelegatedAccountUpdate
represents a fee delegated account update transaction. The transactionObject
can have properties below to create a FeeDelegatedAccountUpdate
transaction.
FeeDelegatedAccountUpdate
has the properties below as its member variables. Properties marked as optional
refer to properties that can be optionally defined in transactionObject
when the user creates FeeDelegatedAccountUpdate
transaction.
NOTE: You can create an instance of FeeDelegatedAccountUpdate
from RLP-encoded strings. Please refer to the below example. NOTE: caver.transaction.feeDelegatedAccountUpdate.create
is supported since caver-js v1.6.1.
NOTE: As of caver-js v1.8.1-rc.4, creating transactions is only supported using the create
function. If you've been creating transactions using a constructor like new caver.transaction.feeDelegatedAccountUpdate({...})
, please change it to caver.transaction.feeDelegatedAccountUpdate.create({...})
.
properties
Name | Type | Description |
---|---|---|
from | string | The address of the sender. |
account | [Account] | An [Account] instance that contains the information needed to update your account. |
gas | string | The maximum amount of transaction fee the transaction is allowed to use. |
signatures | Array | (optional) An array of signatures. |
feePayerSignatures | Array | (optional) An array of feePayerSignatures. |
feePayer | string | (optional) The address of fee payer. |
nonce | string | (optional) A value used to uniquely identify a sender’s transaction. If omitted, |
gasPrice | string | (optional) A multiplier to get how much the sender will pay in tokens. If omitted, |
chainId | string | (optional) The chain id of the Klaytn. If omitted, |
For how to create an [Account] instance for each AccountKey
type, refer to Getting Started - Account Update or caver.account.create.
Example
FeeDelegatedSmartContractDeploy
FeeDelegatedSmartContractDeploy
represents a fee delegated smart contract deploy transaction. The transactionObject
can have properties below to create a FeeDelegatedSmartContractDeploy
transaction.
FeeDelegatedSmartContractDeploy
has the properties below as its member variables. Properties marked as optional
refer to properties that can be optionally defined in transactionObject
when the user creates FeeDelegatedSmartContractDeploy
transaction.
NOTE: You can create an instance of FeeDelegatedSmartContractDeploy
from RLP-encoded strings. Please refer to the below example. NOTE: caver.transaction.feeDelegatedSmartContractDeploy.create
is supported since caver-js v1.6.1.
NOTE: As of caver-js v1.8.1-rc.4, creating transactions is only supported using the create
function. If you've been creating transactions using a constructor like new caver.transaction.feeDelegatedSmartContractDeploy({...})
, please change it to caver.transaction.feeDelegatedSmartContractDeploy.create({...})
.
properties
Name | Type | Description |
---|---|---|
from | string | The address of the sender. |
input | string | Data attached to the transaction. The byte code of the smart contract to be deployed and its arguments. You can get this through caver.abi.encodeContractDeploy. |
gas | string | The maximum amount of transaction fee the transaction is allowed to use. |
value | string | (optional, default: |
to | string | (optional, default: |
humanReadable | boolean | (optional, default: |
codeFormat | string | (optional, default: |
signatures | Array | (optional) An array of signatures. |
feePayerSignatures | Array | (optional) An array of feePayerSignatures. |
feePayer | string | (optional) The address of fee payer. |
nonce | string | (optional) A value used to uniquely identify a sender’s transaction. If omitted, |
gasPrice | string | (optional) A multiplier to get how much the sender will pay in tokens. If omitted, |
chainId | string | (optional) The chain id of the Klaytn. If omitted, |
Example
FeeDelegatedSmartContractExecution
FeeDelegatedSmartContractExecution
represents a fee delegated smart contract execution transaction. The transactionObject
can have properties below to create a FeeDelegatedSmartContractExecution
transaction.
FeeDelegatedSmartContractExecution
has the properties below as its member variables. Properties marked as optional
refer to properties that can be optionally defined in transactionObject
when the user creates FeeDelegatedSmartContractExecution
transaction.
NOTE: You can create an instance of FeeDelegatedSmartContractExecution
from RLP-encoded strings. Please refer to the below example. NOTE: caver.transaction.feeDelegatedSmartContractExecution.create
is supported since caver-js v1.6.1.
NOTE: As of caver-js v1.8.1-rc.4, creating transactions is only supported using the create
function. If you've been creating transactions using a constructor like new caver.transaction.feeDelegatedSmartContractExecution({...})
, please change it to caver.transaction.feeDelegatedSmartContractExecution.create({...})
.
properties
Name | Type | Description |
---|---|---|
from | string | The address of the sender. |
to | string | The address of the smart contract account to be executed. |
input | string | Data attached to the transaction, used for transaction execution. The input is an encoded string that indicates a function to call and parameters to be passed to this function. You can get this encoded string through caver.abi.encodeFunctionCall. |
gas | string | The maximum amount of transaction fee the transaction is allowed to use. |
value | string | (optional, default: |
signatures | Array | (optional) An array of signatures. |
feePayerSignatures | Array | (optional) An array of feePayerSignatures. |
feePayer | string | (optional) The address of fee payer. |
nonce | string | (optional) A value used to uniquely identify a sender’s transaction. If omitted, |
gasPrice | string | (optional) A multiplier to get how much the sender will pay in tokens. If omitted, |
chainId | string | (optional) The chain id of the Klaytn. If omitted, |
Example
FeeDelegatedCancel
FeeDelegatedCancel
represents a fee delegated cancel transaction. The transactionObject
can have properties below to create a FeeDelegatedCancel
transaction.
FeeDelegatedCancel
has the properties below as its member variables. Properties marked as optional
refer to properties that can be optionally defined in transactionObject
when the user creates FeeDelegatedCancel
transaction.
NOTE: You can create an instance of FeeDelegatedCancel
from RLP-encoded strings. Please refer to the below example. NOTE: caver.transaction.feeDelegatedCancel.create
is supported since caver-js v1.6.1.
NOTE: As of caver-js v1.8.1-rc.4, creating transactions is only supported using the create
function. If you've been creating transactions using a constructor like new caver.transaction.feeDelegatedCancel({...})
, please change it to caver.transaction.feeDelegatedCancel.create({...})
.
properties
Name | Type | Description |
---|---|---|
from | string | The address of the sender. |
gas | string | The maximum amount of transaction fee the transaction is allowed to use. |
nonce | string | (optional) A value used to uniquely identify a sender’s transaction. If omitted, |
signatures | Array | (optional) An array of signatures. |
feePayerSignatures | Array | (optional) An array of feePayerSignatures. |
feePayer | string | (optional) The address of fee payer. |
gasPrice | string | (optional) A multiplier to get how much the sender will pay in tokens. If omitted, |
chainId | string | (optional) The chain id of the Klaytn. If omitted, |
Example
FeeDelegatedChainDataAnchoring
FeeDelegatedChainDataAnchoring
represents a fee delegated chain data anchoring transaction. The transactionObject
can have properties below to create a FeeDelegatedChainDataAnchoring
transaction.
FeeDelegatedChainDataAnchoring
has the properties below as its member variables. Properties marked as optional
refer to properties that can be optionally defined in transactionObject
when the user creates FeeDelegatedChainDataAnchoring
transaction.
NOTE: You can create an instance of FeeDelegatedChainDataAnchoring
from RLP-encoded strings. Please refer to the below example. NOTE: caver.transaction.feeDelegatedChainDataAnchoring.create
is supported since caver-js v1.6.1.
NOTE: As of caver-js v1.8.1-rc.4, creating transactions is only supported using the create
function. If you've been creating transactions using a constructor like new caver.transaction.feeDelegatedChainDataAnchoring({...})
, please change it to caver.transaction.feeDelegatedChainDataAnchoring.create({...})
.
properties
Name | Type | Description |
---|---|---|
from | string | The address of the sender. |
input | string | Data of the service chain. |
gas | string | The maximum amount of transaction fee the transaction is allowed to use. |
nonce | string | (optional) A value used to uniquely identify a sender’s transaction. If omitted, |
signatures | Array | (optional) An array of signatures. |
feePayerSignatures | Array | (optional) An array of feePayerSignatures. |
feePayer | string | (optional) The address of fee payer. |
gasPrice | string | (optional) A multiplier to get how much the sender will pay in tokens. If omitted, |
chainId | string | (optional) The chain id of the Klaytn. If omitted, |
Example
Last updated