new FdtxKasApi()
- Version:
- 1.0
FdtxKas service.
Methods
fDAccountUpdateTransactionResponse(opts, callback)
Global fee delegation account update transaction Create a transaction that updates Klaytn account keys. You can find Klaytn account key types in Klaytn docs.<p></p> If you update the account to Legacy key type (1), you can start using your account once it is enabled. If you update the account to Public key type (2), the account cannot be used within the wallet. To restore your account, use Global Fee Delegation RLP API, or update to legacy externally and before enabling the account. If you update the key to Fail key type (3), the account will automatically be disabled.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
FdtxKasApi~fDAccountUpdateTransactionResponseCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
fDAnchorTransaction(opts, callback)
Anchoring transaction with global fee delegation Create a transaction for anchoring blockchain data using KAS global fee payer account.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
FdtxKasApi~fDAnchorTransactionCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
fDCancelTransactionResponse(opts, callback)
Global fee delegation cancel transaction Create a transaction for cancelling a pending transaction that had been sent to Klaytn with the KAS global fee payer account. To cancel, you need either the nonce or the transaction hash.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
FdtxKasApi~fDCancelTransactionResponseCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
fDContractDeployTransaction(opts, callback)
Global Fee Delegation contract deploy transaction Create a transaction for deploying contracts using KAS global fee payer account.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
FdtxKasApi~fDContractDeployTransactionCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
fDContractExecutionTransaction(opts, callback)
Global fee delegation contract execution transaction Create a transaction for executing contracts using KAS global fee payer account.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
FdtxKasApi~fDContractExecutionTransactionCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
fDProcessRLP(opts, callback)
Transaction using global 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. 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, For more details on SigRLP and TxHashRLP by each transaction type, please refer to Klaytn Docs.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
FdtxKasApi~fDProcessRLPCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
fDValueTransferTransaction(opts, callback)
Global fee delegation KLAY transfer transaction Create a transaction for KLAY transfers with/without memos using KAS Global Fee Payer account.
Parameters:
| Name | Type | Description |
|---|---|---|
opts |
Object | Optional parameters |
callback |
FdtxKasApi~fDValueTransferTransactionCallback | The callback function, accepting three arguments: error, data, response data is of type: FDTransactionResult |
Type Definitions
fDAccountUpdateTransactionResponseCallback(error, data, response)
Callback function to receive the result of the fDAccountUpdateTransactionResponse 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. |
fDAnchorTransactionCallback(error, data, response)
Callback function to receive the result of the fDAnchorTransaction 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. |
fDCancelTransactionResponseCallback(error, data, response)
Callback function to receive the result of the fDCancelTransactionResponse 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. |
fDContractDeployTransactionCallback(error, data, response)
Callback function to receive the result of the fDContractDeployTransaction 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. |
fDContractExecutionTransactionCallback(error, data, response)
Callback function to receive the result of the fDContractExecutionTransaction 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. |
fDProcessRLPCallback(error, data, response)
Callback function to receive the result of the fDProcessRLP 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. |
fDValueTransferTransactionCallback(error, data, response)
Callback function to receive the result of the fDValueTransferTransaction 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. |