Erebuzdocs

send()

Execute a quoted route, one call handles routing, privacy, compliance and gas.

Coming soon

The SDK is not yet publicly available, signatures below may change before launch.

Executes a route returned by findRoute(). The value is shielded into the shared pool, screened, routed and settled on the destination chain.

const receipt = await erebuz.send(route);

Parameters

NameTypeDescription
routeRouteA non-expired quote from findRoute()

Returns

A Receipt object:

FieldTypeDescription
idstringErebuz transfer id, usable for status lookups
status"pending" | "settled" | "failed"Current state of the transfer
settlementTxstringTransaction hash on the destination chain, once settled

Behaviour

  • Idempotent: resubmitting the same route while a transfer is pending returns the existing receipt instead of double-sending.
  • Gas: the sender needs no gas on the destination chain; fees come out of the transferred amount.
  • Expiry: quotes expire; sending an expired route throws ROUTE_EXPIRED and you should call findRoute() again.

On this page