@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
Properties
code
readonlycode:"RPC"='RPC'
Defined in: src/errors.ts:54
Overrides
method
readonlymethod:string
Defined in: src/errors.ts:55
transport
readonlytransport:boolean
Defined in: src/errors.ts:56