Options for OnboardingBridgeSDK.fundCrosschain.

Used by the relayer service to relay a cross-chain deposit event onto Stellar. The contract verifies the relayer signatures, checks for replay, calculates the fee, and credits the target C-address.

await sdk.fundCrosschain(
{
chainId: 1, // Ethereum mainnet
txHash: '0xabc...def',
target: 'CC...',
asset: 'CD...usdc',
amount: '1000000', // 0.1 USDC (6 decimals on Ethereum → bridged)
sigs: [relayerSig1, relayerSig2],
},
relayerKeypair,
);
interface CrossChainFundOptions {
    amount: string;
    asset: string;
    chainId: number;
    sigs: RelayerSig[];
    target: string;
    txHash: string;
}

Properties

amount: string

Gross amount of asset to credit (fee deducted before forwarding to target). In the token's smallest unit.

asset: string

Whitelisted token contract address on Stellar that represents the bridged asset.

chainId: number

Numeric identifier of the source chain. Commonly: 1 = Ethereum mainnet, 101 = Solana mainnet.

sigs: RelayerSig[]

Relayer signatures over the canonical payload hash. At least threshold signatures from registered relayers are required.

target: string

Destination Soroban C-address that will receive the net funds.

txHash: string

32-byte source-chain transaction hash as a hex string (with or without 0x prefix). Used together with chainId as a replay-protection nonce.