bridge/interfaces/BridgeServiceConfig.md
Extended bridge configuration with wallet keys.
Extends
Omit<BridgeConfig,"galaConnectBaseUrl">
bridge config gala connect base url
Properties
| Property | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|
bridgeableTokenService | BridgeTokenLookup | Resolves 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? | BridgeEnvironment | Environment - affects default URLs (stage: Sepolia and devnet, prod: mainnet). Default prod. | - | - |
ethereumBridgeContract? | string | Ethereum bridge contract address (optional, defaults to mainnet) | - | BridgeConfig.ethereumBridgeContract |
ethereumPrivateKey | string | Ethereum private key for signing (required for all operations) | BridgeConfig.ethereumPrivateKey | - |
ethereumRpcUrl? | string | Ethereum RPC URL (optional, defaults to public endpoint) | - | BridgeConfig.ethereumRpcUrl |
galaChainApiBaseUrl? | string | GalaChain API base URL (optional, defaults to galaConnectBaseUrl) | - | BridgeConfig.galaChainApiBaseUrl |
galaChainWalletAddress | string | GalaChain wallet address (eth|..., 0x..., or a client| alias) | - | - |
galaConnectBaseUrl? | string | GalaConnect (DEX API platform) base URL (default: the environment's dexApiBaseUrl) | - | - |
httpRequestor? | HttpRequestor | Sends the GalaConnect requests (default: the global fetch) | - | - |
pollInterval? | number | Status polling interval in milliseconds | - | BridgeConfig.pollInterval |
pollTimeout? | number | Status polling timeout in milliseconds | - | BridgeConfig.pollTimeout |
rateLimit? | number | Rate limit for API calls (requests per second) | - | BridgeConfig.rateLimit |
sleep? | BridgeSleep | How the strategies wait (a poll interval, the wait before an inbound registration) | - | - |
solanaBridgeProgram? | string | Solana bridge program ID (optional, defaults to mainnet) | - | BridgeConfig.solanaBridgeProgram |
solanaConnection? | Connection | The Solana connection the Solana strategy uses (default: one to solanaRpcUrl) | - | - |
solanaPrivateKey? | string | Solana private key (base58) for inbound bridges (optional) | - | BridgeConfig.solanaPrivateKey |
solanaRpcUrl? | string | Solana RPC URL (optional, defaults to public endpoint) | - | BridgeConfig.solanaRpcUrl |
bridgeable token service bridge lookup id invalid option environment ethereum contract config private key rpc url gala chain api base wallet address connect dex http requestor poll interval timeout rate limit sleep solana program connection