Methods
getAccount
-
Parameters
Returns Promise<Account | undefined>
getAllTokens
- getAllTokens(): Promise<keyof Token[]>
-
Returns Promise<keyof Token[]>
Protected getDefaultFee
- getDefaultFee(): Promise<Amount | undefined>
-
Returns Promise<Amount | undefined>
getElectionRules
- getElectionRules(): Promise<keyof ElectionRule[]>
-
Returns Promise<keyof ElectionRule[]>
getElectorates
- getElectorates(): Promise<keyof Electorate[]>
-
Returns Promise<keyof Electorate[]>
getFeeQuote
-
Parameters
Returns Promise<Fee>
getNonce
-
Parameters
Returns Promise<Nonce>
getNonces
-
Parameters
Returns Promise<keyof Nonce[]>
Protected getProductFee
- getProductFee(transaction: BnsTx): Promise<Amount | undefined>
-
Parameters
Returns Promise<Amount | undefined>
getProposals
- getProposals(): Promise<keyof Proposal[]>
-
Returns Promise<keyof Proposal[]>
getSwaps
-
Parameters
Returns Promise<keyof AtomicSwap[]>
getSwapsFromState
-
Parameters
Returns Promise<keyof AtomicSwap[]>
getToken
-
Parameters
Returns Promise<Token | undefined>
getUsernames
-
Parameters
Returns Promise<keyof BnsUsernameNft[]>
getValidators
- getValidators(): Promise<keyof Validator[]>
-
Returns Promise<keyof Validator[]>
getVotes
- getVotes(voter: Address): Promise<keyof Vote[]>
-
Parameters
Returns Promise<keyof Vote[]>
height
- height(): Promise<number>
Protected query
-
Parameters
-
path: string
-
data: Uint8Array
searchTx
- searchTx(query: TransactionQuery): Promise<keyof (FailedTransaction | ConfirmedTransaction<LightTransaction>)[]>
-
Parameters
Returns Promise<keyof (FailedTransaction | ConfirmedTransaction<LightTransaction>)[]>
Protected updateSwapAmounts
- updateSwapAmounts<T>(swap: T): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>
withDefaultFee
- withDefaultFee<T>(transaction: T): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>
Talks directly to the BNS blockchain and exposes the same interface we have with the BCP protocol.
We can embed in iov-core process or use this in a BCP-relay