new FeeDelegatedTransactionPaidByUserApi()
- Version:
- 1.0
FeeDelegatedTransactionPaidByUser service.
Methods
uFDAccountUpdateTransaction(xChainId, opts, callback)
UFDAccountUpdateTransaction Create a transaction for updating Klaytn account keys with a user fee delegation account. For details about different Klaytn account keys, refer to Klaytn Docs
If you want to use this API, you need two kind ofx-krn
about account-pool
and feepayer-pool
. Two kind of x-krn
can be written with comma like below example. x-krn: krn:1001:wallet:{{account-id}}:account-pool:{{account-pool-id}},krn:1001:wallet:{{account-id}}:feepayer-pool:{{feepayer-pool-id}}
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
xChainId |
String | Klaytn chain network ID (1001 or 8217) |
||||||
opts |
Object | Optional parameters Properties
|
||||||
callback |
FeeDelegatedTransactionPaidByUserApi~uFDAccountUpdateTransactionCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
uFDAnchorTransaction(xChainId, opts, callback)
UFDAnchorTransaction Create a transaction for anchoring service chain data to the main chain using the user fee delegation account.
If you want to use this API, you need two kind ofx-krn
about account-pool
and feepayer-pool
. Two kind of x-krn
can be written with comma like below example. x-krn: krn:1001:wallet:{{account-id}}:account-pool:{{account-pool-id}},krn:1001:wallet:{{account-id}}:feepayer-pool:{{feepayer-pool-id}}
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
xChainId |
String | Klaytn chain network ID (1001 or 8217) |
||||||
opts |
Object | Optional parameters Properties
|
||||||
callback |
FeeDelegatedTransactionPaidByUserApi~uFDAnchorTransactionCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
uFDContractDeployTransaction(xChainId, opts, callback)
UFDContractDeployTransaction Create a transaction for releasing a contract using the user fee delegation account.
If you want to use this API, you need two kind ofx-krn
about account-pool
and feepayer-pool
. Two kind of x-krn
can be written with comma like below example. x-krn: krn:1001:wallet:{{account-id}}:account-pool:{{account-pool-id}},krn:1001:wallet:{{account-id}}:feepayer-pool:{{feepayer-pool-id}}
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
xChainId |
String | Klaytn chain network ID (1001 or 8217) |
||||||
opts |
Object | Optional parameters Properties
|
||||||
callback |
FeeDelegatedTransactionPaidByUserApi~uFDContractDeployTransactionCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
uFDContractExecutionTransaction(xChainId, opts, callback)
UFDContractExecutionTransaction Create a transaction for executing a released contract function using the user fee delegation account.
If you want to use this API, you need two kind ofx-krn
about account-pool
and feepayer-pool
. Two kind of x-krn
can be written with comma like below example. x-krn: krn:1001:wallet:{{account-id}}:account-pool:{{account-pool-id}},krn:1001:wallet:{{account-id}}:feepayer-pool:{{feepayer-pool-id}}
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
xChainId |
String | Klaytn chain network ID (1001 or 8217) |
||||||
opts |
Object | Optional parameters Properties
|
||||||
callback |
FeeDelegatedTransactionPaidByUserApi~uFDContractExecutionTransactionCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
uFDProcessRLP(xChainId, opts, callback)
UFDProcessRLP Create a transaction using the rlp(SigRLP or TxHashRLP) with user fee payer account. Rlp value from transaction API is TxHashRLP format which contains signatures. SigRLP which does not contain signatures can easily be made from caver.
If you want to make SigRLP, you can use methodgetRLPEncodingForSignature()
of certain transaction object. If you want to make TxHashRLP, you can use method getRLPEncoding()
of certain transaction object. If you give SigRLP in rlp value, we sign the trasnaction using from
address in your account pool. If you need detail description about SigRLP, TxHashRLP of each of transaction, you can refer Klaytn Docs. If you want to use this API, you need two kind of x-krn
about account-pool
and feepayer-pool
. Two kind of x-krn
can be written with comma like below example. x-krn: krn:1001:wallet:{{account-id}}:account-pool:{{account-pool-id}},krn:1001:wallet:{{account-id}}:feepayer-pool:{{feepayer-pool-id}}
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
xChainId |
String | Klaytn chain network ID (1001 or 8217) |
||||||
opts |
Object | Optional parameters Properties
|
||||||
callback |
FeeDelegatedTransactionPaidByUserApi~uFDProcessRLPCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
uFDUserCancelTransaction(xChainId, opts, callback)
UFDUserCancelTransaction Create a transaction for canceling a pending transaction for a transfer to Klaytn using the user fee delegation account. Either a nonce or transaction hash is required for cancellation.
If you want to use this API, you need two kind ofx-krn
about account-pool
and feepayer-pool
. Two kind of x-krn
can be written with comma like below example. x-krn: krn:1001:wallet:{{account-id}}:account-pool:{{account-pool-id}},krn:1001:wallet:{{account-id}}:feepayer-pool:{{feepayer-pool-id}}
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
xChainId |
String | Klaytn chain network ID (1001 or 8217) |
||||||
opts |
Object | Optional parameters Properties
|
||||||
callback |
FeeDelegatedTransactionPaidByUserApi~uFDUserCancelTransactionCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
uFDValueTransferTransaction(xChainId, opts, callback)
UFDValueTransferTransaction Create a transaction for transferring KLAYs with a memo using the user fee delegation account.
If you want to use this API, you need two kind ofx-krn
about account-pool
and feepayer-pool
. Two kind of x-krn
can be written with comma like below example. x-krn: krn:1001:wallet:{{account-id}}:account-pool:{{account-pool-id}},krn:1001:wallet:{{account-id}}:feepayer-pool:{{feepayer-pool-id}}
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
xChainId |
String | Klaytn chain network ID (1001 or 8217) |
||||||
opts |
Object | Optional parameters Properties
|
||||||
callback |
FeeDelegatedTransactionPaidByUserApi~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. |