FdtxUserApi

FdtxUserApi

new FdtxUserApi()

Version:
  • 1.0

FdtxUser service.

Methods

uFDAccountUpdateTransaction(opts, callback)

User Fee Delegation account update transaction Create a transaction for updating the Klaytn account key to another key, using user's fee payer account. You can find Klaytn account key types in Accounts.<p></p> To use this API, you need two `x-krn` for `account-pool` and `feepayer-pool`. The values for `x-krn` is written separated with a comma, as shown below.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDAccountUpdateTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDAnchorTransaction(opts, callback)

User Fee Delegation anchor transaction Create a transaction for anchoring the service chain data on the main chain with the user fee payer account.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDAnchorTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDContractDeployTransaction(opts, callback)

Contract deploy transaction with user fee delegation Create a transaction for deploying contracts with the fee payer account created by user.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDContractDeployTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDContractExecutionTransaction(opts, callback)

Execution of transaction with user fee delegation Create a transaction that executes contracts deployed with the user fee payer account.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDContractExecutionTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDProcessRLP(opts, callback)

Transaction with a user 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.<p></p> 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, 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 Klaytn 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDProcessRLPCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDUserCancelTransaction(opts, callback)

Transaction for cancelling user fee delegation Create a transaction for cancelling a pending transaction that had been sent to Klaytn with the user fee payer account. To cancel, you need either the nonce or the transaction hash.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDUserCancelTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDValueTransferTransaction(opts, callback)

User Fee Delegation KLAY transfer transaction Create a transaction for transferring KLAY with memo with the fee payer account created by user.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDValueTransferTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

Type Definitions

uFDAccountUpdateTransactionCallback(error, data, response)

Callback function to receive the result of the uFDAccountUpdateTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDAnchorTransactionCallback(error, data, response)

Callback function to receive the result of the uFDAnchorTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDContractDeployTransactionCallback(error, data, response)

Callback function to receive the result of the uFDContractDeployTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDContractExecutionTransactionCallback(error, data, response)

Callback function to receive the result of the uFDContractExecutionTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDProcessRLPCallback(error, data, response)

Callback function to receive the result of the uFDProcessRLP operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDUserCancelTransactionCallback(error, data, response)

Callback function to receive the result of the uFDUserCancelTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDValueTransferTransactionCallback(error, data, response)

Callback function to receive the result of the uFDValueTransferTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

FdtxUserApi

new FdtxUserApi(apiClientopt)

Constructs a new FdtxUserApi.

Parameters:
Name Type Attributes Description
apiClient ApiClient <optional>

Optional API client implementation to use, default to ApiClient#instance if unspecified.

Methods

uFDAccountUpdateTransaction(opts, callback)

User Fee Delegation account update transaction Create a transaction for updating the Klaytn account key to another key, using user's fee payer account. You can find Klaytn account key types in Accounts.<p></p> To use this API, you need two `x-krn` for `account-pool` and `feepayer-pool`. The values for `x-krn` is written separated with a comma, as shown below.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDAccountUpdateTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDAnchorTransaction(opts, callback)

User Fee Delegation anchor transaction Create a transaction for anchoring the service chain data on the main chain with the user fee payer account.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDAnchorTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDContractDeployTransaction(opts, callback)

Contract deploy transaction with user fee delegation Create a transaction for deploying contracts with the fee payer account created by user.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDContractDeployTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDContractExecutionTransaction(opts, callback)

Execution of transaction with user fee delegation Create a transaction that executes contracts deployed with the user fee payer account.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDContractExecutionTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDProcessRLP(opts, callback)

Transaction with a user 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.<p></p> 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, 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 Klaytn 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDProcessRLPCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDUserCancelTransaction(opts, callback)

Transaction for cancelling user fee delegation Create a transaction for cancelling a pending transaction that had been sent to Klaytn with the user fee payer account. To cancel, you need either the nonce or the transaction hash.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDUserCancelTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

uFDValueTransferTransaction(opts, callback)

User Fee Delegation KLAY transfer transaction Create a transaction for transferring KLAY with memo with the fee payer account created by user.<p></p> 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.<p></p> ``` x-krn: krn:1001:wallet:local:account-pool:{{account-pool-id}},krn:1001:wallet:local:feepayer-pool:{{feepayer-pool-id}} ```

Parameters:
Name Type Description
opts Object

Optional parameters

callback FdtxUserApi~uFDValueTransferTransactionCallback

The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult

Type Definitions

uFDAccountUpdateTransactionCallback(error, data, response)

Callback function to receive the result of the uFDAccountUpdateTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDAnchorTransactionCallback(error, data, response)

Callback function to receive the result of the uFDAnchorTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDContractDeployTransactionCallback(error, data, response)

Callback function to receive the result of the uFDContractDeployTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDContractExecutionTransactionCallback(error, data, response)

Callback function to receive the result of the uFDContractExecutionTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDProcessRLPCallback(error, data, response)

Callback function to receive the result of the uFDProcessRLP operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDUserCancelTransactionCallback(error, data, response)

Callback function to receive the result of the uFDUserCancelTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.

uFDValueTransferTransactionCallback(error, data, response)

Callback function to receive the result of the uFDValueTransferTransaction operation.

Parameters:
Name Type Description
error String

Error message, if any.

data FDTransactionResult

The data returned by the service call.

response String

The complete HTTP response.