Skip to Content
DevelopersError CodesCodesRPCBaseRPC base call failed

RPC base call failed

Code

RPC/BASE/CALL_FAILED

What it means

This is a catch-all wrapper used when RPCBase.call() fails and the original error does not cleanly map to a more specific code.

When it happens

  • A catch-all wrapper code for failures during RPCBase.call() when the original error is unknown or heterogeneous.

Typical scenarios:

  • Network errors while broadcasting or waiting for a tx result
  • Client-side parsing issues (if the original error is thrown)
  • Unexpected node responses

How to handle

  • Inspect meta.via to locate the failing layer.
  • Preserve cause via AppError.ensure() when possible.

Recommended meta keys:

  • meta.via: include both the wrapper (rpc.base.call) and the contract signature (<pkg>.<func>)
  • meta.params: safe call arguments

Example

import { AppError, AppErrorCodes } from '@aina/shared-common'; try { await rpcCall(); } catch (e) { throw AppError.ensure(e, { code: AppErrorCodes.RPC.BASE_CALL_FAILED, status: 500, meta: { via: ['rpc.base.call', '...'], params: { /* safe args */ } } }); }
Last updated on
Docsv1.0.10