Router Operations
resource: router — Router contract addresses, chain support, fees, and chain-selector conversion
getAddress
Looks up a network's Router contract address from the bundled reference table (see Networks). Static lookup — no network call.
| Field | Type | Required | Description |
|---|---|---|---|
network | select | No | Defaults to ethereum-mainnet. |
{
"routerAddress": "0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D",
"chainSelector": "5009297550715157269",
"nativeChainId": "1"
}
isChainSupported
Checks whether a destination chain is supported by a network's Router. Real on-chain read
— calls IRouterClient.isChainSupported(uint64) via a minimal, independent Nethereum client.
Requires Chainlink:NetworkRpcUrls:{network} to be configured (see
Configuration).
| Field | Type | Required | Description |
|---|---|---|---|
network | select | No | Which Router to query. Defaults to ethereum-mainnet. |
destinationChainSelector | text | ✓ Yes | CCIP chain selector of the destination chain. |
{ "isChainSupported": true }
getFee
Computes the real CCIP fee for sending a message. Real on-chain read — calls
IRouterClient.getFee(uint64, EVM2AnyMessage) against the resolved Router contract, building the
same EVM2AnyMessage tuple message/build builds. Also requires
NetworkRpcUrls.
| Field | Type | Required | Description |
|---|---|---|---|
network | select | No | Which Router to query. Defaults to ethereum-mainnet. |
destinationChainSelector | text | ✓ Yes | CCIP chain selector of the destination chain. |
receiverAddress | text | ✓ Yes | Same as message/build. |
payloadData, tokenAmounts, feeToken, extraArgsVersion, gasLimit, allowOutOfOrderExecution | — | No | Same fields, same meaning, as message/build — fee depends on the exact message shape. |
{ "feeAmount": "142857142857142", "feeToken": "0x0000000000000000000000000000000000000000" }
feeToken in the output is the resolved address actually used for the
on-chain fee calculation — the native-gas-token zero address (0x0...0) when your config left
feeToken empty, following CCIP's "empty = pay in native gas token" convention. It is not
simply echoed back from your input.
convertChainSelector
Converts between a network's name, native chain ID, and CCIP chain selector using the bundled reference table. Static lookup — no network call. Supply exactly one of the three keys; whichever one you supply determines the lookup direction.
| Field | Type | Required | Description |
|---|---|---|---|
network | text | One of the three | Network name, e.g. ethereum-mainnet. |
nativeChainId | text | One of the three | EVM chain ID, e.g. 1. |
chainSelector | text | One of the three | CCIP chain selector, e.g. 5009297550715157269. |
{ "networkName": "ethereum-mainnet", "nativeChainId": "1", "chainSelector": "5009297550715157269" }