Fee Delegation

FeeDelegatedValueTransfer

caver.transaction.feeDelegatedValueTransfer.create(transactionObject)

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.

properties

Name
Type
Description

value

string

The amount of KLAY in peb to be transferred. You can use caver.utils.toPeb.

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, caver.rpc.klay.getTransactionCount(address, 'pending') will be used to set nonce.

gasPrice

string

(optional) A multiplier to get how much the sender will pay in tokens. If omitted, caver.rpc.klay.getGasPrice will be used to set gasPrice.

chainId

string

(optional) The chain id of the Klaytn blockchain platform (abbreviated as "Klaytn" for the rest of this document). If omitted, caver.rpc.klay.getChainId will be used to set chainId.

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.

properties

Name
Type
Description

value

string

The amount of KLAY in peb to be transferred. You can use caver.utils.toPeb.

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, caver.rpc.klay.getTransactionCount(address, 'pending') will be used to set nonce.

gasPrice

string

(optional) A multiplier to get how much the sender will pay in tokens. If omitted, caver.rpc.klay.getGasPrice will be used to set gasPrice.

chainId

string

(optional) The chain id of the Klaytn. If omitted, caver.rpc.klay.getChainId will be used to set chainId.

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.

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, caver.rpc.klay.getTransactionCount(address, 'pending') will be used to set nonce.

gasPrice

string

(optional) A multiplier to get how much the sender will pay in tokens. If omitted, caver.rpc.klay.getGasPrice will be used to set gasPrice.

chainId

string

(optional) The chain id of the Klaytn. If omitted, caver.rpc.klay.getChainId will be used to set chainId.

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.

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: '0x0') The amount of KLAY in peb to be transferred. You can use caver.utils.toPeb.

to

string

(optional, default: '0x') Address to which the smart contract is deployed. Currently, this value cannot be defined. Specifying the address will be supported in the future.

humanReadable

boolean

(optional, default: false) This must be false since human-readable address is not supported yet.

codeFormat

string

(optional, default: 'EVM') The code format of smart contract code. The supported value, for now, is EVM only. This value is converted to hex string after the assignment(e.g> EVM is converted to 0x0) internally.

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, caver.rpc.klay.getTransactionCount(address, 'pending') will be used to set nonce.

gasPrice

string

(optional) A multiplier to get how much the sender will pay in tokens. If omitted, caver.rpc.klay.getGasPrice will be used to set gasPrice.

chainId

string

(optional) The chain id of the Klaytn. If omitted, caver.rpc.klay.getChainId will be used to set chainId.

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.

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: '0x0') The amount of KLAY in peb to be transferred. You can use caver.utils.toPeb.

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, caver.rpc.klay.getTransactionCount(address, 'pending') will be used to set nonce.

gasPrice

string

(optional) A multiplier to get how much the sender will pay in tokens. If omitted, caver.rpc.klay.getGasPrice will be used to set gasPrice.

chainId

string

(optional) The chain id of the Klaytn. If omitted, caver.rpc.klay.getChainId will be used to set chainId.

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.

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, caver.rpc.klay.getTransactionCount(address, 'pending') will be used to set nonce.

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, caver.rpc.klay.getGasPrice will be used to set gasPrice.

chainId

string

(optional) The chain id of the Klaytn. If omitted, caver.rpc.klay.getChainId will be used to set chainId.

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.

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, caver.rpc.klay.getTransactionCount(address, 'pending') will be used to set nonce.

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, caver.rpc.klay.getGasPrice will be used to set gasPrice.

chainId

string

(optional) The chain id of the Klaytn. If omitted, caver.rpc.klay.getChainId will be used to set chainId.

Example

Last updated