queryRate

Query rate record for a number.

Using this method requires feature Balance.

Return

Handle of the request or null if failed to query.

Parameters

accountId

ID of the account to query the rate on; null if feature Multiple Accounts is not provided or for default account.

number

Number to query the rate record for.

callback

Callback called when the rate is available.


open fun queryRate(@IntRange(from = 0) index: Int, @NonNull number: PeerAddress, @NonNull callback: RateCallback): Handle
open fun queryRate(@IntRange(from = 0) index: Int, @NonNull number: String, @NonNull callback: RateCallback): Handle

Query rate record for a number.

Using this method requires feature Balance.

Return

Handle of the request or null if failed to query.

Parameters

index

Index of the account to query the rate on; 0 ≤ index <getAccountCount; 0 if feature Multiple Accounts is not provided.

number

Number to query the rate record for.

callback

Callback called when the rate is available.