Skip to main content

Namespace: RpcRequests

Functions

rpcCosmosGetAccounts

rpcCosmosGetAccounts(client, session, chainId): Promise<AccountData[]>

Performs a cosmos_getAccount RPC request.

Parameters

NameTypeDescription
clientSignClientClient used to perform the request.
sessionStructSession used to perform the request.
chainIdstringID of the chain to which the request refers.

Returns

Promise<AccountData[]>

Defined in

packages/walletconnect-v2/src/rpcrequests.ts:22


rpcCosmosSignAmino

rpcCosmosSignAmino(client, session, chainId, signerAddress, signDoc): Promise<SignAminoRpcResponseParams>

Performs a cosmos_signAmino RPC request.

Parameters

NameTypeDescription
clientSignClientClient used to perform the request.
sessionStructSession used to perform the request.
chainIdstringID of the chain to which the request refers.
signerAddressstringAddress of who will sign the transaction.
signDocStdSignDocTransaction to be signed.

Returns

Promise<SignAminoRpcResponseParams>

Defined in

packages/walletconnect-v2/src/rpcrequests.ts:77


rpcCosmosSignDirect

rpcCosmosSignDirect(client, session, chainId, signerAddress, signDoc): Promise<SignDirectRpcResponseParams>

Performs a cosmos_signDirect RPC request.

Parameters

NameTypeDescription
clientSignClientClient used to perform the request.
sessionStructSession used to perform the request.
chainIdstringID of the chain to which the request refers.
signerAddressstringAddress of who will sign the transaction.
signDocSignDocTransaction to be signed.

Returns

Promise<SignDirectRpcResponseParams>

Defined in

packages/walletconnect-v2/src/rpcrequests.ts:52