extractRouting is the core function of the library. It reconciles an address and memo into a canonical routing result.
API Reference
extractRouting
The primary API for deposit routing.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The primary API for deposit routing.
extractRouting is the core function of the library. It reconciles an address and memo into a canonical routing result.
function extractRouting(input: RoutingInput): RoutingResult
func ExtractRouting(input RoutingInput) RoutingResult
RoutingResult extractRouting(RoutingInput input)
RoutingInput| Field | Type | Description |
|---|---|---|
address | string | The destination address (G, M, or C). |
memoType | string | (Optional) ID, TEXT, HASH, or RETURN. |
memoValue | string | (Optional) The raw memo value. |
RoutingResult| Field | Type | Description |
|---|---|---|
address | string | The canonical base G-address. |
routingId | string | The extracted 64-bit ID (or empty string). |
warnings | Warning[] | List of warnings encountered. |
destinationError | string | Error code if the destination is invalid. |