Skip to main content

Namespace: RpcResponse

Functions

rpcCosmosGetAccounts

rpcCosmosGetAccounts(client, session, requestId, accounts): Promise<void>

Respond to a cosmos_getAccounts RPC request.

Parameters

NameTypeDescription
clientSignClientClient used to send the response.
sessionStructSession used to send the response.
requestIdnumberId of the request to which the response refers.
accountsAccountData[]Accounts that will be sent.

Returns

Promise<void>

Defined in

packages/walletconnect-v2/src/rpcresponse.ts:18


rpcCosmosSignAmino

rpcCosmosSignAmino(client, session, requestId, signResponse): Promise<void>

Respond to a cosmos_signAmino RPC request.

Parameters

NameTypeDescription
clientSignClientClient used to send the response.
sessionStructSession used to send the response.
requestIdnumberId of the request to which the response refers.
signResponseAminoSignResponseSignature response that will be sent.

Returns

Promise<void>

Defined in

packages/walletconnect-v2/src/rpcresponse.ts:64


rpcCosmosSignDirect

rpcCosmosSignDirect(client, session, requestId, signResponse): Promise<void>

Respond to a cosmos_signDirect RPC request.

Parameters

NameTypeDescription
clientSignClientClient used to send the response.
sessionStructSession used to send the response.
requestIdnumberId of the request to which the response refers.
signResponseDirectSignResponseSignature response that will be sent.

Returns

Promise<void>

Defined in

packages/walletconnect-v2/src/rpcresponse.ts:41