Stacks
getStacksSignedTransaction
This function for :
.STACKS
- stacks (STX).SIP010
- stacks token.STACKS_TESTNET
- stacks testnet (STXt).SIP010_TESTNET
- stacks testnet token
Parameters
coinType: stacks networks coin type
stacksTransaction: (StacksTransation)stacks transaction parameter
class StacksTransaction
Name | Type | Description |
---|---|---|
key |
| sign key path for stacks transaction |
signHash |
| transaction that has not been signed of stacks transaction |
authType |
| transaction authorization type of stacks transaction (refer toStacks Doc) - standard authorization: 0x04 - sponsored authorization: 0x05 |
fee |
| transaction fee of stacks transaction * fee value is configured in stacks(STX) unit |
nonce |
| transaction nonce of stacks transaction |
symbol |
| transaction symbol of stacks transaction |
decimals |
| transaction decimals of stacks transaction |
optionParam |
| (optional)hexadecimal value of the token method type - '01' : assert transfer - '02' : token stake - '03' + amount(8bytes) : token revoke (amount value is configured in micro-STX unit) - '04' : dapp contract |
Returns
result: (Bool)
true
if successful,false
if error occurredtxData: signed transaction
Requirements
D'CENT Biometric Wallet version 2.14.1 or higher is required.
(for SIP010): 2.16.7 or higher is required.
Example
Last updated