Constructors
constructor
-
Parameters
-
baseUrl: string
-
chainId: ChainId
Methods
getAccount
- getAccount(query: AccountQuery): Promise<Account | undefined>
-
Parameters
Returns Promise<Account | undefined>
getAllTokens
- getAllTokens(): Promise<keyof Token[]>
-
Returns Promise<keyof Token[]>
getBlockHeader
- getBlockHeader(height: number): Promise<BlockHeader>
-
Parameters
Returns Promise<BlockHeader>
getFeeQuote
- getFeeQuote(tx: UnsignedTransaction): Promise<Fee>
-
Parameters
Returns Promise<Fee>
getNonce
- getNonce(_: AddressQuery | PubkeyQuery): Promise<Nonce>
-
Parameters
-
_: AddressQuery | PubkeyQuery
Returns Promise<Nonce>
getNonces
- getNonces(_: AddressQuery | PubkeyQuery, count: number): Promise<keyof Nonce[]>
-
Parameters
-
_: AddressQuery | PubkeyQuery
-
count: number
Returns Promise<keyof Nonce[]>
getToken
- getToken(searchTicker: TokenTicker): Promise<Token | undefined>
-
Parameters
-
searchTicker: TokenTicker
Returns Promise<Token | undefined>
getTx
- getTx(id: TransactionId): Promise<ConfirmedAndSignedTransaction<UnsignedTransaction>>
-
Parameters
Returns Promise<ConfirmedAndSignedTransaction<UnsignedTransaction>>
height
- height(): Promise<number>
listenTx
- listenTx(_: TransactionQuery): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>
-
Parameters
Returns Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>
liveTx
- liveTx(query: TransactionQuery): Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>
-
Parameters
Returns Stream<ConfirmedTransaction<LightTransaction> | FailedTransaction>
postTx
- postTx(bytes: PostableBytes): Promise<PostTxResponse>
-
Parameters
Returns Promise<PostTxResponse>
searchTx
- searchTx(query: TransactionQuery): Promise<keyof ConfirmedTransaction<UnsignedTransaction>[]>
-
Parameters
Returns Promise<keyof ConfirmedTransaction<UnsignedTransaction>[]>
watchAccount
- watchAccount(query: AccountQuery): Stream<Account | undefined>
-
Parameters
Returns Stream<Account | undefined>
watchBlockHeaders
- watchBlockHeaders(): Stream<BlockHeader>
-
Returns Stream<BlockHeader>
withDefaultFee
- withDefaultFee<T>(transaction: T): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>