Function Signature
Description
Make a generic JSON-RPC request to the blockchain. This allows you to call any RPC method supported by the chain.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | String | Yes | The chain ID in CAIP-2 format |
method | String | Yes | The JSON-RPC method name |
params | List<Object?> | Yes | The method parameters |
signatureApprovalMemo | String | No | Optional memo for signing operations |
Returns
PortalProviderResponse - An object containing:
| Property | Type | Description |
|---|---|---|
result | dynamic | The result of the RPC call |
error | dynamic | Error information if the call failed |
Example
Common RPC Methods
Signing Methods
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
RPC_ERROR | The RPC call returned an error |
NETWORK_ERROR | Network connectivity issue |