External module core.api.factories
Functions
Const broadcastTransaction
-
Parameters
Returns function
-
-
Parameters
-
signedTransactionPayload: string
Const generateSendTransactionQRCode
- generateSendTransactionQRCode(service: BurstService): function
-
Parameters
Returns function
-
- (receiverId: string, amountNQT?: number, feeSuggestionType?: string, feeNQT?: number, immutable?: boolean): Promise<ArrayBufferLike>
-
Parameters
-
receiverId: string
-
Optional amountNQT: number
-
Optional feeSuggestionType: string
-
Optional feeNQT: number
-
Optional immutable: boolean
Returns Promise<ArrayBufferLike>
Const generateSendTransactionQRCodeAddress
- generateSendTransactionQRCodeAddress(service: BurstService): function
-
Parameters
Returns function
-
- (receiverId: string, amountNQT?: number, feeSuggestionType?: string, feeNQT?: number, immutable?: boolean): Promise<string>
-
Parameters
-
receiverId: string
-
Optional amountNQT: number
-
Optional feeSuggestionType: string
-
Optional feeNQT: number
-
Optional immutable: boolean
Returns Promise<string>
Const getAccount
-
Parameters
Returns function
-
- (accountId: string): Promise<Account>
-
Parameters
Returns Promise<Account>
Const getAccountBalance
-
Parameters
Returns function
-
- (accountId: string): Promise<Balance>
-
Parameters
Returns Promise<Balance>
Const getAccountTransactions
-
Parameters
Returns function
-
- (accountId: string, firstIndex?: number, lastIndex?: number, numberOfConfirmations?: number, type?: number, subtype?: number, includeIndirect?: boolean): Promise<TransactionList>
-
Parameters
-
accountId: string
-
Optional firstIndex: number
-
Optional lastIndex: number
-
Optional numberOfConfirmations: number
-
Optional type: number
-
Optional subtype: number
-
Optional includeIndirect: boolean
Const getAliases
-
Parameters
Returns function
Const getBlockByHeight
-
Parameters
Returns function
-
- (height: number, includeTransactions: boolean): Promise<Block>
-
Parameters
-
height: number
-
includeTransactions: boolean
Returns Promise<Block>
Const getBlockById
-
Parameters
Returns function
-
- (block: string, includeTransactions: boolean): Promise<Block>
-
Parameters
-
block: string
-
includeTransactions: boolean
Returns Promise<Block>
Const getBlockByTimestamp
-
Parameters
Returns function
-
- (timestamp: number, includeTransactions: boolean): Promise<Block>
-
Parameters
-
timestamp: number
-
includeTransactions: boolean
Returns Promise<Block>
Const getBlockId
-
Parameters
Returns function
-
-
Parameters
Returns Promise<BlockId>
Const getBlockchainStatus
-
Parameters
Returns function
Const getBlocks
-
Parameters
Returns function
-
- (firstIndex?: number, lastIndex?: number, includeTransactions?: boolean): Promise<Block[]>
-
Parameters
-
Optional firstIndex: number
-
Optional lastIndex: number
-
Optional includeTransactions: boolean
Returns Promise<Block[]>
Const getPeer
-
Parameters
Returns function
-
- (peer: string): Promise<Peer>
-
Parameters
Returns Promise<Peer>
Const getPeers
-
Parameters
Returns function
Const getServerStatus
-
Parameters
Returns function
Const getTime
-
Parameters
Returns function
Const getTransaction
-
Parameters
Returns function
Const getUnconfirmedAccountTransactions
- getUnconfirmedAccountTransactions(service: BurstService): function
-
Parameters
Returns function
-
-
Parameters
-
accountId: string
-
Optional includeIndirect: boolean
Const sendEncryptedTextMessage
-
Parameters
Returns function
-
- (message: string, recipientId: string, recipientPublicKey: string, senderKeys: Keys, deadline?: number, fee?: number): Promise<TransactionId>
-
Parameters
-
message: string
-
recipientId: string
-
recipientPublicKey: string
-
senderKeys: Keys
-
Optional deadline: number
-
Optional fee: number
Const sendMoney
-
Parameters
Returns function
-
- (transaction: Transaction, senderPublicKey: string, senderPrivateKey: string, recipientAddress: string): Promise<TransactionId | Error>
-
Parameters
-
-
senderPublicKey: string
-
senderPrivateKey: string
-
recipientAddress: string
Const sendMoneyMultiOut
-
Parameters
Returns function
-
- (transaction: Transaction, senderPublicKey: string, senderPrivateKey: string, recipients: string, sameAmount: boolean): Promise<TransactionId | Error>
-
Parameters
-
-
senderPublicKey: string
-
senderPrivateKey: string
-
recipients: string
-
sameAmount: boolean
Const sendTextMessage
-
Parameters
Returns function
-
- (message: string, recipientId: string, senderPublicKey: string, senderPrivateKey: string, deadline?: number, fee?: number): Promise<TransactionId>
-
Parameters
-
message: string
-
recipientId: string
-
senderPublicKey: string
-
senderPrivateKey: string
-
Optional deadline: number
-
Optional fee: number
Const setAccountInfo
-
Parameters
Returns function
-
- (name: string, description: string, feeNQT: string, senderPublicKey: string, senderPrivateKey: string, deadline: number): Promise<TransactionId>
-
Parameters
-
name: string
-
description: string
-
feeNQT: string
-
senderPublicKey: string
-
senderPrivateKey: string
-
deadline: number
Const setAlias
-
Parameters
Returns function
-
- (aliasName: string, aliasURI: string, feeNQT: string, senderPublicKey: string, senderPrivateKey: string, deadline: number): Promise<TransactionId>
-
Parameters
-
aliasName: string
-
aliasURI: string
-
feeNQT: string
-
senderPublicKey: string
-
senderPrivateKey: string
-
deadline: number
Const suggestFee
-
Parameters
Returns function