request

suspend fun request(chainId: String, method: PortalRequestMethod, params: List<Any>, options: RequestOptions? = null): PortalProviderResult

Sends a request to the provider.

Return

The result of the request.

Parameters

chainId

The ID of the blockchain chain.

method

The request method.

params

The request parameters.

options

Optional RequestOptions containing request options like signatureApprovalMemo and sponsorGas.


suspend fun request(chainId: String, method: PortalRequestMethod, params: List<Any>, signatureApprovalMemo: String?): PortalProviderResult

Deprecated

Use request with RequestOptions instead

Replace with

request(chainId, method, params, RequestOptions(signatureApprovalMemo = signatureApprovalMemo))

Sends a request to the provider.

Return

The result of the request.

Parameters

chainId

The ID of the blockchain chain.

method

The request method.

params

The request parameters.

signatureApprovalMemo

Optional memo to be displayed during signature approval.