Options for OnboardingBridgeSDK.createCAddress.

Creates a new Soroban smart-contract account (C-address) and optionally funds it immediately in the same flow.

const { cAddress } = await sdk.createCAddress({
deployerKeypair: keypair,
initialFunds: { asset: 'CD...usdc', amount: '10000000' },
});
console.log('New C-address:', cAddress);
interface CreateCOptions {
    deployerKeypair: any;
    initialFunds?: {
        amount: string;
        asset: string;
    };
    salt?: string;
}

Properties

deployerKeypair: any

Keypair used to sign the contract-creation transaction. This account pays the deployment fees.

initialFunds?: {
    amount: string;
    asset: string;
}

Optional initial funds to transfer to the newly created C-address immediately after its creation, using the bridge contract's fund_c_address function.

Type declaration

  • amount: string

    Amount to send, in the token's smallest unit.

  • asset: string

    Token contract address of the asset to send.

salt?: string

Optional 32-byte salt for deterministic address derivation, as a hex string. If omitted, a random salt is generated so the address is non-deterministic.