Portal Community

getAddress

Looks up a network's Router contract address from the bundled reference table (see Networks). Static lookup — no network call.

FieldTypeRequiredDescription
networkselectNoDefaults 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).

FieldTypeRequiredDescription
networkselectNoWhich Router to query. Defaults to ethereum-mainnet.
destinationChainSelectortext✓ YesCCIP 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.

FieldTypeRequiredDescription
networkselectNoWhich Router to query. Defaults to ethereum-mainnet.
destinationChainSelectortext✓ YesCCIP chain selector of the destination chain.
receiverAddresstext✓ YesSame as message/build.
payloadData, tokenAmounts, feeToken, extraArgsVersion, gasLimit, allowOutOfOrderExecutionNoSame 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.

FieldTypeRequiredDescription
networktextOne of the threeNetwork name, e.g. ethereum-mainnet.
nativeChainIdtextOne of the threeEVM chain ID, e.g. 1.
chainSelectortextOne of the threeCCIP chain selector, e.g. 5009297550715157269.
{ "networkName": "ethereum-mainnet", "nativeChainId": "1", "chainSelector": "5009297550715157269" }
Purpose-built to prevent chain-ID confusion: use this before passing a chain identifier between this node and any other multi-chain node — native chain ID, CCIP chain selector, and (if you're also using Wormhole) Wormhole's own chain ID are three different numbers for the same chain.