Transactions

Below are the methods of the SWT Thrift API that allow you to organize work with transactions.

ActualFeeGet()

returns the actual value of the commission for a regular transaction

ActualFeeGetResult ActualFeeGet(1:i32 transactionSize)

WalletDataGet()

returns account data, including delegations

WalletDataGetResult WalletDataGet(1:general.Address address)

WalletIdGet()

returns the id of the account in the system

WalletIdGetResult WalletIdGet(1:general.Address address)

WalletTransactionsCountGet()

returns the number of transactions sent from this account

WalletTransactionsCountGetResult WalletTransactionsCountGet(1:general.Address address)

WalletBalanceGet()

returns the balance of the account with the address address

WalletBalanceGetResult WalletBalanceGet(1:general.Address address)

TransactionGet()

returns information about the transaction with the given id

TransactionGetResult TransactionGet(1:TransactionId transactionId)

TransactionsGet()

returns a list of recent transactions for the address account

// Get transactions where address is either sender or receiver

TransactionsGetResult TransactionsGet(1:general.Address address, 2:i64 offset, 3:i64 limit)

TransactionFlow()

method for sending transactions, accepts a transaction in API format as input. returns the result of its execution. Doesn't work with monitor node

TransactionFlowResult TransactionFlow(1:Transaction transaction)

TransactionsListGet()

returns a list of the last transactions in the system starting with offset in the amount of limit

TransactionsGetResult TransactionsListGet(1:i64 offset, 2:i64 limit)

FilteredTransactionsListGet()

returns a list of transactions according to generalQuery

FilteredTransactionsListResult FilteredTransactionsListGet(1:TransactionsQuery generalQuery)

Last updated