Skip to content

@armada/sdk / index / RpcError

Class: RpcError ​

Defined in: src/errors.ts:53

An RPC call failed (SPEC §8). method is the call; cause is the provider's own error. transport is true when the node wasn't reached (connection, timeout, HTTP error) — worth retrying later or on another node — and false when the node answered with an error (a range limit, a revert, a bad request).

Extends ​

Constructors ​

Constructor ​

new RpcError(method, cause): RpcError

Defined in: src/errors.ts:57

Parameters ​

method ​

string

cause ​

unknown

Returns ​

RpcError

Overrides ​

ArmadaError.constructor

Properties ​

code ​

readonly code: "RPC" = 'RPC'

Defined in: src/errors.ts:54

Overrides ​

ArmadaError.code


method ​

readonly method: string

Defined in: src/errors.ts:55


transport ​

readonly transport: boolean

Defined in: src/errors.ts:56