Klaytn Docs Archive
Getting StartedBuild a dAppNode OperationDeveloper Hub
  • Klaytn Docs
  • -
    • Klaytn Overview
      • Why Klaytn
      • Klaytn Design
        • Consensus Mechanism
        • Accounts
        • Transactions
          • Basic
          • Fee Delegation
          • Partial Fee Delegation
          • Ethereum
        • Computation
          • Klaytn Smart Contract
          • Execution Model
          • Computation Cost
            • Computation Cost (Previous docs)
          • Klaytn Virtual Machine
            • Klaytn Virtual Machine (Previous docs)
        • Storage
          • State Migration
          • StateDB Live Pruning
        • Transaction Fees
          • Transaction Fees (Previous docs)
        • Klaytn native coin - KLAY
        • Token Economy
        • Governance
        • Multi-Channel
        • KNI
      • Scaling Solutions
    • Getting Started
      • Deploying Smart Contract Using Foundry
      • Deploying Smart Contract Using Hardhat
      • Deploying Smart Contract Using Thirdweb
      • Deploying Smart Contract Using KEN
        • Launch an Endpoint Node
        • Top up your Account
        • Install Development Tools
        • Deploy a Smart Contract
        • Check the Deployment
        • Account Management
          • Creating Accounts
          • Managing Accounts
      • Development Environment
      • Getting KLAY
    • Smart Contract
      • Solidity - Smart Contract Language
      • Precompiled Contracts
        • Precompiled Contracts (Previous docs)
      • IDE and Tools
        • Truffle
      • Sample Contracts
        • KlaytnGreeter
        • ERC-20
          • 1. Writing ERC-20 Smart Contract
          • 2. Deploying Smart Contract
          • 3. Interacting with ERC-20 token from Klaytn Wallet
        • ERC-721
          • 1. Writing ERC-721 Smart Contract
          • 2. Deploying Smart Contract
      • Testing Guide
      • Deployment Guide
      • Klaytn Compatible Tokens
      • Porting Ethereum Contract
    • Run a Node
      • Deployment
        • Endpoint Node
          • System Requirements
          • Installation Guide
            • Download
            • Installation Guide
            • Configuration
            • Startup the EN
            • Testing the Installation
          • ken CLI commands
          • JSON-RPC APIs
        • Core Cell
          • System Requirements
          • Network Configuration
          • Installation Guide
            • Download
            • Before You Install
            • Consensus Node Setup
              • Installation Guide
              • Configuration
              • Startup the CN
            • Proxy Node Setup
              • Installation Guide
              • Configuration
              • Startup the PN
            • Testing the Core Cell
          • Monitoring Setup
          • H/A Setup
        • Service Chain
          • Getting Started
            • Setting up a 4-node Service Chain
            • Connecting to Baobab
            • Cross-Chain Value Transfer
            • HA(High Availability) for ServiceChain
            • Nested ServiceChain
            • Value Transfer between Sibling ServiceChains
          • Reference Manuals
            • System Requirements
            • Download
            • SCN User Guide
              • Installation
              • Configuration
              • Starting/Stopping SCN
              • Checking Node Status
              • kscn commands
              • homi commands
            • SPN/SEN User Guide
              • Installation
              • Configuration
              • Starting/Stopping Node
              • Checking Node Status
            • Bridge Configuration
            • Anchoring
            • KAS Anchoring
            • Value Transfer
            • Configuration Files
            • Log Files
            • Genesis JSON
            • Upgrade & Hard Fork
          • How-To Guides
        • Download Node Packages
          • v1.12.0
          • v1.11.1
          • v1.11.0
          • v1.10.2
          • v1.10.1
          • v1.10.0
          • v1.9.1
          • v1.9.0
          • v1.8.4
          • v1.8.3
          • v1.8.2
          • v1.8.1
          • v1.8.0
          • v1.7.3
          • v1.7.2
          • v1.7.1
          • v1.7.0
          • v1.6.4
          • v1.6.3
          • v1.6.2
          • v1.6.1
          • v1.6.0
          • v1.5.3
          • v1.5.2
          • v1.5.1
          • v1.5.0
          • v1.4.2
          • v1.4.1
          • v1.4.0
          • v1.3.0
          • v1.2.0
          • v1.1.1
          • v1.0.0
          • v0.9.6
          • v0.8.2
    • Operation Guide
      • Configuration
      • Node Log
      • Log operation
      • Errors & Troubleshooting
      • Klaytn Command
      • Chaindata Change
      • Chaindata Migration
    • dApp Developers
      • JSON-RPC APIs
        • API references
          • eth
            • Caution
            • Account
            • Block
            • Transaction
            • Config
            • Filter
            • Gas
            • Miscellaneous
          • klay
            • Account
            • Block
            • Transaction
              • Working with Klaytn Transaction Types
            • Configuration
            • Filter
            • Gas
            • Miscellaneous
          • net
          • debug
            • Logging
            • Profiling
            • Runtime Tracing
            • Runtime Debugging
            • VM Tracing
            • VM Standard Tracing
            • Blockchain Inspection
          • admin
          • personal
          • txpool
          • governance
        • Service Chain API references
          • mainbridge
          • subbridge
        • Transaction Error Codes
      • RPC Service Providers
        • Public Endpoints
      • SDK & Libraries for interacting with Klaytn Node
        • caver-js
          • Getting Started
          • Sending a sample transaction
          • API references
            • caver.account
            • caver.wallet
              • caver.wallet.keyring
            • caver.transaction
              • Basic
              • Fee Delegation
              • Partial Fee Delegation
            • caver.rpc
              • caver.rpc.klay
              • caver.rpc.net
              • caver.rpc.governance
            • caver.contract
            • caver.abi
            • caver.kct
              • caver.kct.kip7
              • caver.kct.kip17
              • caver.kct.kip37
            • caver.validator
            • caver.utils
            • caver.ipfs
          • caver-js ~v1.4.1
            • Getting Started (~v1.4.1)
            • API references
              • caver.klay
                • Account
                • Block
                • Transaction
                  • Legacy
                  • Value Transfer
                  • Value Transfer Memo
                  • Account Update
                  • Smart Contract Deploy
                  • Smart Contract Execution
                  • Cancel
                • Configuration
                • Filter
                • Miscellaneous
              • caver.klay.net
              • caver.klay.accounts
              • caver.klay.Contract
              • caver.klay.KIP7
              • caver.klay.KIP17
              • caver.klay.abi
              • caver.utils (~v1.4.1)
            • Porting from web3.js
        • caver-java
          • Getting Started
          • API references
          • caver-java ~v1.4.0
            • Getting Started (~v1.4.0)
            • Porting from web3j
        • ethers.js
        • web3.js
      • Tutorials
        • Klaytn Online Toolkit
        • Fee Delegation Example
        • Count DApp
          • 1. Environment Setup
          • 2. Clone Count DApp
          • 3. Directory Structure
          • 4. Write Smart Contract
          • 5. Frontend Code Overview
            • 5-1. Blocknumber Component
            • 5-2. Auth Component
            • 5-3. Count Component
          • 6. Deploy Contract
          • 7. Run App
        • Klaystagram
          • 1. Environment Setup
          • 2. Clone Klaystagram DApp
          • 3. Directory Structure
          • 4. Write Klaystagram Smart Contract
          • 5. Deploy Contract
          • 6. Frontend Code Overview
          • 7. FeedPage
            • 7-1. Connect Contract to Frontend
            • 7-2. UploadPhoto Component
            • 7-3. Feed Component
            • 7-4. TransferOwnership Component
          • 8. Run App
        • Building a Buy Me a Coffee dApp
          • 1. Project Setup
          • 2. Creating a BMC Smart Contract
          • 3. Testing the contract using scripts
          • 4. Deploying BMC Smart contract
          • 5. Building the BMC Frontend with React and Web3Onboard
          • 6. Deploying Frontend code on IPFS using Fleek
          • 7. Conclusion
        • Migrating Ethereum App to Klaytn
        • Connecting MetaMask
        • Connecting Remix
        • Verifying Smart Contracts Using Block Explorers
      • Developer Tools
        • Wallets
          • Kaikas
          • Klaytn Wallet
          • Klaytn Safe
            • Klaytn Safe Design
            • Create a Safe
            • Add assets
            • Send assets
            • Contract Interaction
            • Transaction Builder
            • Points to Note
            • Frequently Asked Questions
          • SafePal S1
          • Wallet Libraries
            • Web3Auth
            • Web3Modal
            • Web3-Onboard
            • Particle Network
        • Oracles
          • Orakl Network
          • Witnet
          • SupraOracles
        • Indexers
          • SubQuery
        • Cross-chain
          • LayerZero
        • Block Explorers
          • Klaytnscope
          • Klaytnfinder
        • Klaytn Contracts Wizard
    • Glossary
  • ---
    • Klaytn Hard Fork History
    • Klaytn 2.0
      • Metaverse Package
      • Finality and Improvements
      • Ethereum Compatibility
      • Decentralizing Governance
      • Massive Eco Fund
    • FAQ
    • Open Source
    • Terms of Use
    • Languages
  • ℹ️Latest Klaytn Docs
Powered by GitBook
On this page
  • FeeDelegatedValueTransfer
  • FeeDelegatedValueTransferMemo
  • FeeDelegatedAccountUpdate
  • FeeDelegatedSmartContractDeploy
  • FeeDelegatedSmartContractExecution
  • FeeDelegatedCancel
  • FeeDelegatedChainDataAnchoring
  1. -
  2. dApp Developers
  3. SDK & Libraries for interacting with Klaytn Node
  4. caver-js
  5. API references
  6. caver.transaction

Fee Delegation

PreviousBasicNextPartial Fee Delegation

Last updated 2 years ago

FeeDelegatedValueTransfer

caver.transaction.feeDelegatedValueTransfer.create(transactionObject)

FeeDelegatedValueTransfer represents a . 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 .

NOTE: As of caver-js , 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 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

// Create a feeDelegatedValueTransfer
> caver.transaction.feeDelegatedValueTransfer.create({
    from: '0x{address in hex}',
    to: '0x9957dfd92e4b70f91131c573293343bc5f21f215',
    value: caver.utils.toPeb(1, 'KLAY'),
    gas: 25000,
})

// Create a feeDelegatedValueTransfer from RLP-encoded string
> caver.transaction.feeDelegatedValueTransfer.create('0x09f8d68204d219830f4240947b65b75d204abed71587c9e519a89277766ee1d00a94a94f5374fce5edbc8e2a8697c15331677e6ebf0bf845f84325a09f8e49e2ad84b0732984398749956e807e4b526c786af3c5f7416b293e638956a06bf88342092f6ff9fabe31739b2ebfa1409707ce54a54693e91a6b9bb77df0e7945a0043070275d9f6054307ee7348bd660849d90ff845f84326a0f45cf8d7f88c08e6b6ec0b3b562f34ca94283e4689021987abb6b0772ddfd80aa0298fe2c5aeabb6a518f4cbb5ff39631a5d88be505d3923374f65fdcf63c2955b')
FeeDelegatedValueTransfer {
    _type: 'TxTypeFeeDelegatedValueTransfer',
    _from: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b',
    _gas: '0xf4240',
    _nonce: '0x4d2',
    _gasPrice: '0x19',
    _signatures: [ SignatureData { _v: '0x25', _r: '0x9f8e4...', _s: '0x6bf88...' } ],
    _feePayer: '0x5a0043070275d9f6054307ee7348bd660849d90f',
    _feePayerSignatures: [ SignatureData { _v: '0x26', _r: '0xf45cf...', _s: '0x298fe...' } ],
    _to: '0x7b65b75d204abed71587c9e519a89277766ee1d0',
    _value: '0xa'
}

FeeDelegatedValueTransferMemo

caver.transaction.feeDelegatedValueTransferMemo.create(transactionObject)

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

// Create a feeDelegatedValueTransferMemo
> caver.transaction.feeDelegatedValueTransferMemo.create({
    from: '0x{address in hex}',
    to: '0x9957dfd92e4b70f91131c573293343bc5f21f215',
    value: caver.utils.toPeb(1, 'KLAY'),
    gas: 25000,
    input: '0x68656c6c6f',
})

// Create a feeDelegatedValueTransferMemo from RLP-encoded string
> caver.transaction.feeDelegatedValueTransferMemo.create('0x11f8dc8204d219830f4240947b65b75d204abed71587c9e519a89277766ee1d00a94a94f5374fce5edbc8e2a8697c15331677e6ebf0b8568656c6c6ff845f84326a064e213aef0167fbd853f8f9989ef5d8b912a77457395ccf13d7f37009edd5c5ba05d0c2e55e4d8734fe2516ed56ac628b74c0eb02aa3b6eda51e1e25a1396093e1945a0043070275d9f6054307ee7348bd660849d90ff845f84326a087390ac14d3c34440b6ddb7b190d3ebde1a07d9a556e5a82ce7e501f24a060f9a037badbcb12cda1ed67b12b1831683a08a3adadee2ea760a07a46bdbb856fea44')
FeeDelegatedValueTransferMemo {
    _type: 'TxTypeFeeDelegatedValueTransferMemo',
    _from: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b',
    _gas: '0xf4240',
    _nonce: '0x4d2',
    _gasPrice: '0x19',
    _signatures: [ SignatureData { _v: '0x26', _r: '0x64e21...', _s: '0x5d0c2...' } ],
    _feePayer: '0x5a0043070275d9f6054307ee7348bd660849d90f',
    _feePayerSignatures: [ SignatureData { _v: '0x26', _r: '0x87390...', _s: '0x37bad...' } ],
    _to: '0x7b65b75d204abed71587c9e519a89277766ee1d0',
    _value: '0xa',
    _input: '0x68656c6c6f'
}

FeeDelegatedAccountUpdate

caver.transaction.feeDelegatedAccountUpdate.create(transactionObject)

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.

Example

// Create a feeDelegatedAccountUpdate
> caver.transaction.feeDelegatedAccountUpdate.create({
    from: '0x{address in hex}',
    gas: 50000,
    account: caver.account.createWithAccountKeyLegacy('0x{address in hex}'),
})

// Create a feeDelegatedAccountUpdate from RLP-encoded string
> caver.transaction.feeDelegatedAccountUpdate.create('0x21f8ea018505d21dba00830493e094ac1aec09ef5f8dde6a0baf709ea388bbd7965f72a302a103d032771e5d927fb568cdf7605496b700277d7b9bcabe7657f45602348964e396f846f844820fe99f0e1a3542288951226c66e6e8de320ddef4e0c0d6650baec828998a7ce411fea052d0766f3b84f35787d2a810f97057d215dcbe070cd890b7ccb8aaa3aac8eacc9423bf3d4eb274621e56ce65f6fa05da9e24785bb8f847f845820feaa0faca4cf91418c6fea61e9439620b656c7b0717b058fd8787865f4564a0f9974ea03a483582435426e7b2aeffe3131a678ae54c7aa948fa5442b5ded209ba373221')
FeeDelegatedAccountUpdate {
    _type: 'TxTypeFeeDelegatedAccountUpdate',
    _from: '0xac1aec09ef5f8dde6a0baf709ea388bbd7965f72',
    _gas: '0x493e0',
    _nonce: '0x1',
    _gasPrice: '0x5d21dba00',
    _signatures: [ SignatureData { _v: '0x0fe9', _r: '0x0e1a3...', _s: '0x52d07...' } ],
    _feePayer: '0x23bf3d4eb274621e56ce65f6fa05da9e24785bb8',
    _feePayerSignatures: [ SignatureData { _v: '0x0fea', _r: '0xfaca4...', _s: '0x3a483...' } ],
    _account: Account {
        _address: '0xac1aec09ef5f8dde6a0baf709ea388bbd7965f72',
        _accountKey: AccountKeyPublic { _publicKey: '0x03d03...' }
    }
}

FeeDelegatedSmartContractDeploy

caver.transaction.feeDelegatedSmartContractDeploy.create(transactionObject)

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

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

// Create a feeDelegatedSmartContractDeploy
> caver.transaction.feeDelegatedSmartContractDeploy.create({
    from: '0x{address in hex}',
    input: '0x60806...',
    gas: 100000,
})

// Create a feeDelegatedSmartContractDeploy from RLP-encoded string
> caver.transaction.feeDelegatedSmartContractDeploy.create('0x29f902cc808505d21dba00830dbba08080948061145252c8f2b4f110aed096435ae6ed7d5a95b901fe608060405234801561001057600080fd5b506101de806100206000396000f3006080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631a39d8ef81146100805780636353586b146100a757806370a08231146100ca578063fd6b7ef8146100f8575b3360009081526001602052604081208054349081019091558154019055005b34801561008c57600080fd5b5061009561010d565b60408051918252519081900360200190f35b6100c873ffffffffffffffffffffffffffffffffffffffff60043516610113565b005b3480156100d657600080fd5b5061009573ffffffffffffffffffffffffffffffffffffffff60043516610147565b34801561010457600080fd5b506100c8610159565b60005481565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604081208054349081019091558154019055565b60016020526000908152604090205481565b336000908152600160205260408120805490829055908111156101af57604051339082156108fc029083906000818181858888f193505050501561019c576101af565b3360009081526001602052604090208190555b505600a165627a7a72305820627ca46bb09478a015762806cc00c431230501118c7c26c30ac58c4e09e51c4f00298080f847f845820fe9a07abfd0f0cfb9a9c38c6e3e1a4eeb15f43aeb4b4f6dee7c3f37c07e417af89d9ba03f1e54a512c906d2e57a611b25ce4739d12928e199c3e89792b82f577f0da9ad942c8eb96e7060ab864d94e91ab16f214dc6647628f847f845820fe9a0192e3b6457f13c6ef557bd11074702d5062dd463473c483278c57f651d5b712ba03ff8638b7cc7ed86c793cb5ffe0e8a064fc94946c3aab624bb7704c62e81ec2d')
FeeDelegatedSmartContractDeploy {
    _type: 'TxTypeFeeDelegatedSmartContractDeploy',
    _from: '0x8061145252c8f2b4f110aed096435ae6ed7d5a95',
    _gas: '0xdbba0',
    _nonce: '0x0',
    _gasPrice: '0x5d21dba00',
    _signatures: [ SignatureData { _v: '0x0fe9', _r: '0x7abfd...', _s: '0x3f1e5...' } ],
    _feePayer: '0x2c8eb96e7060ab864d94e91ab16f214dc6647628',
    _feePayerSignatures: [ SignatureData { _v: '0x0fe9', _r: '0x192e3...', _s: '0x3ff86...' } ],
    _to: '0x',
    _value: '0x0',
    _input: '0x60806...',
    _humanReadable: false,
    _codeFormat: '0x0'
}

FeeDelegatedSmartContractExecution

caver.transaction.feeDelegatedSmartContractExecution.create(transactionObject)

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

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

// Create a feeDelegatedSmartContractExecution
> caver.transaction.feeDelegatedSmartContractExecution.create({
    from: '0x{address in hex}',
    to: '0x{address in hex}',
    input: '0xa9059...',
    gas: 90000,
})

// Create a feeDelegatedSmartContractExecution from RLP-encoded string
> caver.transaction.feeDelegatedSmartContractExecution.create('0x31f8fb8204d219830f4240947b65b75d204abed71587c9e519a89277766ee1d00a94a94f5374fce5edbc8e2a8697c15331677e6ebf0ba46353586b000000000000000000000000bc5951f055a85f41a3b62fd6f68ab7de76d299b2f845f84325a0253aea7d2c37160da45e84afbb45f6b3341cf1e8fc2df4ecc78f14adb512dc4fa022465b74015c2a8f8501186bb5e200e6ce44be52e9374615a7e7e21c41bc27b5945a0043070275d9f6054307ee7348bd660849d90ff845f84326a0e7c51db7b922c6fa2a941c9687884c593b1b13076bdf0c473538d826bf7b9d1aa05b0de2aabb84b66db8bf52d62f3d3b71b592e3748455630f1504c20073624d80')
FeeDelegatedSmartContractExecution {
    _type: 'TxTypeFeeDelegatedSmartContractExecution',
    _from: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b',
    _gas: '0xf4240',
    _nonce: '0x4d2',
    _gasPrice: '0x19',
    _signatures: [ SignatureData { _v: '0x25', _r: '0x253ae...', _s: '0x22465b...' } ],
    _feePayer: '0x5a0043070275d9f6054307ee7348bd660849d90f',
    _feePayerSignatures:  SignatureData { _v: '0x26', _r: '0xe7c51...', _s: '0x5b0de...' } ],
    _to: '0x7b65b75d204abed71587c9e519a89277766ee1d0',
    _value: '0xa',
    _input: '0x6353586b000000000000000000000000bc5951f055a85f41a3b62fd6f68ab7de76d299b2'
}

FeeDelegatedCancel

caver.transaction.feeDelegatedCancel.create(transactionObject)

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

// Create a feeDelegatedCancel
> caver.transaction.feeDelegatedCancel.create({
    from: '0x{address in hex}',
    nonce: 1,
    gas: 25000,
})

// Create a feeDelegatedCancel from RLP-encoded string
> caver.transaction.feeDelegatedCancel.create('0x39f8c08204d219830f424094a94f5374fce5edbc8e2a8697c15331677e6ebf0bf845f84326a08409f5441d4725f90905ad87f03793857d124de7a43169bc67320cd2f020efa9a060af63e87bdc565d7f7de906916b2334336ee7b24d9a71c9521a67df02e7ec92945a0043070275d9f6054307ee7348bd660849d90ff845f84326a0044d5b25e8c649a1fdaa409dc3817be390ad90a17c25bc17c89b6d5d248495e0a073938e690d27b5267c73108352cf12d01de7fd0077b388e94721aa1fa32f85ec')
FeeDelegatedCancel {
    _type: 'TxTypeFeeDelegatedCancel',
    _from: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b',
    _gas: '0xf4240',
    _nonce: '0x4d2',
    _gasPrice: '0x19',
    _signatures: [ SignatureData { _v: '0x26', _r: '0x8409f...', _s: '0x60af6...' } ],
    _feePayer: '0x5a0043070275d9f6054307ee7348bd660849d90f',
    _feePayerSignatures: [ SignatureData { _v: '0x26', _r: '0x044d5...', _s: '0x73938...' } ]
}

FeeDelegatedChainDataAnchoring

caver.transaction.feeDelegatedChainDataAnchoring.create(transactionObject)

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

// Create a feeDelegatedChainDataAnchoring
> caver.transaction.feeDelegatedChainDataAnchoring.create({
    from: '0x{address in hex}',
    gas: 50000,
    input: '0xf8a6a...',
})

// Create a feeDelegatedChainDataAnchoring from RLP-encoded string
> caver.transaction.feeDelegatedChainDataAnchoring.create('0x49f90176118505d21dba0085174876e80094a94f5374fce5edbc8e2a8697c15331677e6ebf0bb8aff8ad80b8aaf8a8a00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001a00000000000000000000000000000000000000000000000000000000000000002a00000000000000000000000000000000000000000000000000000000000000003a00000000000000000000000000000000000000000000000000000000000000004058006f845f84326a0afe41edc9cce1185ab9065ca7dbfb89ab5c7bde3602a659aa258324124644142a0317848698248ba7cc057b8f0dd19a27b52ef904d29cb72823100f1ed18ba2bb39433f524631e573329a550296f595c820d6c65213ff845f84325a0309e46db21a1bf7bfdae24d9192aca69516d6a341ecce8971fc69cff481cee76a04b939bf7384c4f919880307323a5e36d4d6e029bae1887a43332710cdd48f174')
FeeDelegatedChainDataAnchoring {
    _type: 'TxTypeFeeDelegatedChainDataAnchoring',
    _from: '0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b',
    _gas: '0x174876e800',
    _nonce: '0x11',
    _gasPrice: '0x5d21dba00',
    _signatures: [ SignatureData { _v: '0x26', _r: '0xafe41...', _s: '0x31784...' } ],
    _feePayer: '0x33f524631e573329a550296f595c820d6c65213f',
    _feePayerSignatures: [ SignatureData { _v: '0x25', _r: '0x309e4...', _s: '0x4b939...' } ],
    _input: '0xf8ad8...'
}

FeeDelegatedValueTransferMemo represents a . The transactionObject can have properties below to create a 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 .

NOTE: As of caver-js , 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({...}).

FeeDelegatedAccountUpdate represents a . The transactionObject can have properties below to create a 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 .

NOTE: As of caver-js , 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({...}).

For how to create an [Account] instance for each AccountKey type, refer to or .

FeeDelegatedSmartContractDeploy represents a . The transactionObject can have properties below to create a 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 .

NOTE: As of caver-js , 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({...}).

Data attached to the transaction. The byte code of the smart contract to be deployed and its arguments. You can get this through .

FeeDelegatedSmartContractExecution represents a . The transactionObject can have properties below to create a 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 .

NOTE: As of caver-js , 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({...}).

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 .

FeeDelegatedCancel represents a . The transactionObject can have properties below to create a 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 .

NOTE: As of caver-js , 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({...}).

FeeDelegatedChainDataAnchoring represents a . The transactionObject can have properties below to create a 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 .

NOTE: As of caver-js , 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({...}).

v1.6.1
v1.8.1-rc.4
v1.6.1
v1.8.1-rc.4
v1.6.1
v1.8.1-rc.4
v1.6.1
v1.8.1-rc.4
v1.6.1
v1.8.1-rc.4
v1.6.1
v1.8.1-rc.4
v1.6.1
v1.8.1-rc.4
caver.account.create
fee delegated value transfer transaction
fee delegated value transfer memo transaction
fee delegated account update transaction
fee delegated smart contract deploy transaction
fee delegated smart contract execution transaction
fee delegated cancel transaction
fee delegated chain data anchoring transaction
caver.abi.encodeContractDeploy
caver.abi.encodeFunctionCall
Getting Started - Account Update