Skip to main content

API 接入

ENDPOINT 规则#

Https接入

https://api.elara.patract.io/<Network>/<YOUR-PROJECT-ID>

Websocket接入

wss://api.elara.patract.io/<Network>/<YOUR-PROJECT-ID>

支持网络#

NETWORKDESCRIPTIONENDPOINT
PolkadotJSON-RPC over HTTPShttps://api.elara.patract.io/Polkadot/YOUR-PROJECT-ID
PolkadotJSON-RPC over WebSocketwss://api.elara.patract.io/Polkadot/YOUR-PROJECT-ID
KusamaJSON-RPC over HTTPShttps://api.elara.patract.io/Kusama/YOUR-PROJECT-ID
KusamaJSON-RPC over WebSocketwss://api.elara.patract.io/Kusama/YOUR-PROJECT-ID
RococoJSON-RPC over HTTPShttps://api.elara.patract.io/Rococo/YOUR-PROJECT-ID
RococoJSON-RPC over WebSocketwss://api.elara.patract.io/Rococo/YOUR-PROJECT-ID
JupiterJSON-RPC over HTTPShttps://api.elara.patract.io/Jupiter/YOUR-PROJECT-ID
JupiterJSON-RPC over WebSocketwss://api.elara.patract.io/Jupiter/YOUR-PROJECT-ID
DarwiniaJSON-RPC over HTTPShttps://api.elara.patract.io/Darwinia/YOUR-PROJECT-ID
DarwiniaJSON-RPC over WebSocketwss://api.elara.patract.io/Darwinia/YOUR-PROJECT-ID
DockJSON-RPC over HTTPShttps://api.elara.patract.io/Dock/YOUR-PROJECT-ID
DockJSON-RPC over WebSocketwss://api.elara.patract.io/Dock/YOUR-PROJECT-ID
EdgewareJSON-RPC over HTTPShttps://api.elara.patract.io/Edgeware/YOUR-PROJECT-ID
EdgewareJSON-RPC over WebSocketwss://api.elara.patract.io/Edgeware/YOUR-PROJECT-ID
KulupuJSON-RPC over HTTPShttps://api.elara.patract.io/Kulupu/YOUR-PROJECT-ID
KulupuJSON-RPC over WebSocketwss://api.elara.patract.io/Kulupu/YOUR-PROJECT-ID
NodleJSON-RPC over HTTPShttps://api.elara.patract.io/Nodle/YOUR-PROJECT-ID
NodleJSON-RPC over WebSocketwss://api.elara.patract.io/Nodle/YOUR-PROJECT-ID
PlasmJSON-RPC over HTTPShttps://api.elara.patract.io/Plasm/YOUR-PROJECT-ID
PlasmJSON-RPC over WebSocketwss://api.elara.patract.io/Plasm/YOUR-PROJECT-ID
StafiJSON-RPC over HTTPShttps://api.elara.patract.io/Stafi/YOUR-PROJECT-ID
StafiJSON-RPC over WebSocketwss://api.elara.patract.io/Stafi/YOUR-PROJECT-ID
ChainxJSON-RPC over HTTPShttps://api.elara.patract.io/Chainx/YOUR-PROJECT-ID
ChainxJSON-RPC over WebSocketwss://api.elara.patract.io/Chainx/YOUR-PROJECT-ID
MandalaJSON-RPC over HTTPShttps://api.elara.patract.io/Mandala/YOUR-PROJECT-ID
MandalaJSON-RPC over WebSocketwss://api.elara.patract.io/Mandala/YOUR-PROJECT-ID

错误代码#

如果Substrate RPC方法遇到错误,则响应对象中包含的错误成员务必是包含代码成员和描述性消息成员的对象。 以下列表包含所有可能的错误代码和关联的消息:

CODE**MEANING**CATEGORY
-32700Parse errorInvalid JSON
-32600Invalid requestJSON is not a valid request object
-32601Method not foundMethod does not exist
-32602Invalid paramsInvalid method parameters
-32603Internal errorInternal JSON-RPC error
-1CheckAuthenticated Failnon-standard
-2Project Name Emptynon-standard
-3Project Name Error!non-standard
-4Chain Errornon-standard
-5Out Of Limitnon-standard
-6NotActivenon-standard
-7RPC Errornon-standard
-8Project Errornon-standard
-9No Access Allowednon-standard
-10Black Uidnon-standard
-11Duplicate Namenon-standard