transaction library
The cryptocurrencies that support transaction assembly are listed.
Classes
- AbiUtil
- Function for encode eth function, support rawEncode, encodeSingle.
- Action
- near transaction action type, require Transfer or FunctionCall and enumValue.
- AlphTxData
- AlphTxData requires unsignedTx, txId, txId is the parameter to be signed.
- AlphTxSigner
- Require AlphTxData and wallet.
- AptosTxData
- AptosTxData requires to_sign_message, transaction, to_sign_message is the parameter to be signed.
- AptosTxSigner
- Require AptosTxData and wallet.
- CkbTxData
- CkbTxData requires version, hash, cellDeps, headerDeps, inputs, outputs, outputsData, witnesses getMessage is the parameter to be signed.
- CkbTxSigner
- Require CkbTxData and wallet.
- CosmosTxData
- CosmosTxData requires msgs, data, config, memo, fee msgs is the parameter to be signed.
- CosmosTxSigner
- Require CosmosTxData and wallet.
- Decoded
- Eip1559TxData
- EIP712Domain
- For typed data EIP712 domain.
- EIP712TypedData
- For typed data V1
- EthTxData
- EthTxDataRaw
- EthTxSigner
- Require EthTxData and wallet.
- FilTransaction
- FilTxData
- FilTxData requires transaction, to_sign, to_sign is the parameter to be signed.
- FilTxSigner
- Require FilTxData and wallet.
- FunctionCall
- Input
- KasTxData
- KasTxData requires version, inputs, outputs, lockTime, subnetworkId, allowOrphan inputs is the parameter to be signed.
- KasTxSigner
- Require KasTxData and wallet.
- LegacyTxData
- NearTransferType
- NearTxData
- NearTxData requires transaction, hash, hash is the parameter to be signed.
- NearTxSigner
- Require NearTxData and wallet.
- Output
- PreviousOutpoint
- PublicKey
- ScriptPublicKey
- SolTxData
- SolTxData requires initTokenAddress, transaction, blockhash, lastValidBlockHeight, fee transaction is the parameter to be signed.
- SolTxDataV2
- Provide another way to get SolTxData
- SolTxSigner
- Require SolTxData and wallet.
- SolTxSignerV2
- Provide another way to sign sol message.
- Transaction
- Transfer
- TxNetwork
- TypedDataField
- For typed data field, require name and type.
- TypedDataUtil
- Utils for typed data.
- TypedMessage
- For typed data V3, V4
- XrpAmount
- XrpAmountType
- XrpTokenAmount
- XrpTransactionType
- XrpTxData
- XrpTxData requires account, transactionType, destination, amount, limitAmount, sequence, fee, lastLedgerSequence XrpTxData is the parameter to be signed.
- XrpTxSigner
- Require XrpTxData and wallet.
Enums
- EthTxType
- TypedDataVersion
- data version include V1, V3 and V4.
Constants
- TRANSACTION_TYPE → const int
Properties
- TRANSACTION_TYPE_BUFFER → Uint8List
-
final
Functions
-
concatSig(
Uint8List r, Uint8List s, Uint8List v) → String -
concatSigCompact(
Uint8List r, Uint8List s) → String -
decode(
Uint8List input, [bool stream = false]) → dynamic -
encode(
dynamic input) → Uint8List -
encodeLength(
int length, int offset) → Uint8List -
intToBuffer(
dynamic i) → Uint8List - Converts an int or BigInt to a Uint8List
-
intToHex(
dynamic i) → String - Converts a int into a hex String
-
padToEven(
String value) → String - Pads a String to have an even length
-
safeParseInt(
String v, [int base = 10]) → int -
signToCompact(
{required Uint8List message, required Uint8List privateKey}) → String -
signTypedData(
{required Uint8List privateKey, required String jsonData, required TypedDataVersion version}) → String - Sign typed data, support all versions
-
signTypedDataCompact(
{required Uint8List privateKey, required String jsonData, required TypedDataVersion version}) → String - Sign typed data compact, support all versions