Transactions

Get Transactions from all accounts of specified blockchain networks

Abstrakt.shared.getTransactions(blockchainNetwork: [Strings], completion: @escaping ([EthereumTransaction]) -> Void)

Get Transactions from a specific account

Abstrakt.shared.getTransactionsFromAccount(accountAddress: String, blockchainNetwork: BlockchainNetwork, completion: @escaping ([EthereumTransaction]) -> Void)

Get Pending Transactions from all accounts of specified blockchain networks

Abstrakt.shared.getPendingTransactions(blockchainNetworks: [BlockchainNetwork] = [], completion: @escaping ([EthereumTransaction]) -> Void)

Get Transactions from a specific account

Abstrakt.shared.getPendingTransactionsFromAccount(accountAddress: String, blockchainNetwork: BlockchainNetwork, completion: @escaping ([EthereumTransaction]) -> Void)

Send Transaction

Send transaction by specifying the from address, to address, the blockchain network, and value in ether.

ParameterDescription
blockchainNetworkif enabled will generate testnet work accounts and mainnet accounts of existing accounts
fromAccountAddresspublic address of account to transfer from
toAccountAddresspublic address of account to transfer to
amountToTransferamount in ether to transfer
ReturnDescription
booleanreturns true = success or false = failed
Abstrakt.shared.sendTransaction(blockchainNetwork: BlockchainNetwork, fromAccountAddress: String, toAccountAddress: String, userId: String, amountToTransfer: String, completion: @escaping (CompletionError?) -> Void)