@interlay/interbtc-api / Exports / FaucetClient
JsonRpcClient<void>
↳ FaucetClient
• new FaucetClient(api, url): FaucetClient
| Name | Type |
|---|---|
api |
ApiPromise |
url |
string |
JsonRpcClient\<void\>.constructor
• Private api: ApiPromise
• constr: Object
| Name | Type |
|---|---|
FundAccountJsonRpcRequest |
CodecClass<FundAccountJsonRpcRequest, any[]> |
• registry: TypeRegistry
• url: string
JsonRpcClient.url
▸ fundAccount(account, currency): Promise<void>
| Name | Type |
|---|---|
account |
AccountId |
currency |
CollateralCurrencyExt |
Promise<void>
▸ post(method, params?): Promise<JsonRpcResponse<void>>
| Name | Type |
|---|---|
method |
string |
params? |
RequestParams |
Promise<JsonRpcResponse<void>>
JsonRpcClient.post