Skip to main content

bridge/interfaces/BridgeServiceConfig.md

Extended bridge configuration with wallet keys.

Extends​

Properties​

PropertyTypeDescriptionOverridesInherited from
bridgeableTokenServiceBridgeTokenLookupResolves a tokenId to the token bridgeable to a network (the BridgeableTokenService). Every method that takes a tokenId goes through it, so it is required: a missing lookup is refused at construction (INVALID_BRIDGE_OPTION), not at the first call.--
environment?BridgeEnvironmentEnvironment - affects default URLs (stage: Sepolia and devnet, prod: mainnet). Default prod.--
ethereumBridgeContract?stringEthereum bridge contract address (optional, defaults to mainnet)-BridgeConfig.ethereumBridgeContract
ethereumPrivateKeystringEthereum private key for signing (required for all operations)BridgeConfig.ethereumPrivateKey-
ethereumRpcUrl?stringEthereum RPC URL (optional, defaults to public endpoint)-BridgeConfig.ethereumRpcUrl
galaChainApiBaseUrl?stringGalaChain API base URL (optional, defaults to galaConnectBaseUrl)-BridgeConfig.galaChainApiBaseUrl
galaChainWalletAddressstringGalaChain wallet address (eth|..., 0x..., or a client| alias)--
galaConnectBaseUrl?stringGalaConnect (DEX API platform) base URL (default: the environment's dexApiBaseUrl)--
httpRequestor?HttpRequestorSends the GalaConnect requests (default: the global fetch)--
pollInterval?numberStatus polling interval in milliseconds-BridgeConfig.pollInterval
pollTimeout?numberStatus polling timeout in milliseconds-BridgeConfig.pollTimeout
rateLimit?numberRate limit for API calls (requests per second)-BridgeConfig.rateLimit
sleep?BridgeSleepHow the strategies wait (a poll interval, the wait before an inbound registration)--
solanaBridgeProgram?stringSolana bridge program ID (optional, defaults to mainnet)-BridgeConfig.solanaBridgeProgram
solanaConnection?ConnectionThe Solana connection the Solana strategy uses (default: one to solanaRpcUrl)--
solanaPrivateKey?stringSolana private key (base58) for inbound bridges (optional)-BridgeConfig.solanaPrivateKey
solanaRpcUrl?stringSolana RPC URL (optional, defaults to public endpoint)-BridgeConfig.solanaRpcUrl