Skip to main content

rpc_methods - JSON-RPC Method

Description#

Returns the list of RPC methods supported by the connected Enjin Matrix node. This is useful for capability detection and for confirming that chain-specific namespaces (e.g., fuelTanks_*, ismp_*, multitokens_*) are available.

Parameters#

This method does not require parameters.

Returns#

FieldTypeDescription
methodsarrayArray of method names (strings)

Request Example#

{
"jsonrpc": "2.0",
"method": "rpc_methods",
"params": [],
"id": 1
}

Response Example (excerpt)#

{
"jsonrpc": "2.0",
"result": {
"methods": [
"account_nextIndex",
"author_pendingExtrinsics",
"author_submitExtrinsic",
"chain_getHeader",
"chain_getFinalizedHead",
"chain_subscribeNewHeads",
"childstate_getStorage",
"fuelTanks_selectFuelTank",
"ismp_queryChallengePeriod",
"multitokens_queryClaimableCollections",
"offchain_localStorageGet",
"payment_queryInfo",
"rpc_methods",
"state_call",
"state_getMetadata",
"state_traceBlock",
"system_health",
"transactionWatch_v1_submitAndWatch",
"transaction_v1_broadcast",
"unsubscribe_newHead"
]
},
"id": 1
}

Code Examples#

curl https://api-enjin-matrixchain.n.dwellir.com/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "rpc_methods",
"params": [],
"id": 1
}'

Notes#

  • fuelTanks_*, multitokens_*, and ismp_* provide Matrix-specific functionality such as fee sponsorship, NFT claimables, and interoperability primitives.
  • Some experimental RPCs may require custom type registries (API/INIT: RPC methods not decorated warnings in Polkadot.js). Extend the API with type definitions if they are omitted.
  • Use this method during application startup to log the RPC surface area and detect configuration drift between nodes.