Skip to content

Documentation / js-sdk-core / rpc

Function: rpc()

rpc(context, sign, input): Promise<OAuthProviderType>

Executes a Wallet API RPC request.

Parameters

context: WalletApiActionContext

The context needed to execute the action

sign: SignWalletRequest

A function that signs a wallet request

input: any

The input to the Wallet API RPC request

Returns

Promise<OAuthProviderType>

The response from the Wallet API RPC request