Interface: BridgeServiceConfig
GalaChain core SDK 1.0.0-rc.8 / bridge / BridgeServiceConfig
Interface: BridgeServiceConfig
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1811
Extended bridge configuration with wallet keys.
Extends
Omit<BridgeConfig,"galaConnectBaseUrl">
Properties
bridgeableTokenService
bridgeableTokenService:
BridgeTokenLookup
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1825
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?
optionalenvironment?:BridgeEnvironment
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1819
Environment - affects default URLs (stage: Sepolia and devnet, prod: mainnet). Default prod.
ethereumBridgeContract?
optionalethereumBridgeContract?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:409
Ethereum bridge contract address (optional, defaults to mainnet)
Inherited from
BridgeConfig.ethereumBridgeContract
ethereumPrivateKey
ethereumPrivateKey:
string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1817
Ethereum private key for signing (required for all operations)
Overrides
BridgeConfig.ethereumPrivateKey
ethereumRpcUrl?
optionalethereumRpcUrl?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:405
Ethereum RPC URL (optional, defaults to public endpoint)
Inherited from
galaChainApiBaseUrl?
optionalgalaChainApiBaseUrl?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:403
GalaChain API base URL (optional, defaults to galaConnectBaseUrl)
Inherited from
BridgeConfig.galaChainApiBaseUrl
galaChainWalletAddress
galaChainWalletAddress:
string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1815
GalaChain wallet address (eth|..., 0x..., or a client| alias)
galaConnectBaseUrl?
optionalgalaConnectBaseUrl?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1813
GalaConnect (DEX API platform) base URL (default: the environment's dexApiBaseUrl)
httpRequestor?
optionalhttpRequestor?:HttpRequestor
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1827
Sends the GalaConnect requests (default: the global fetch)
pollInterval?
optionalpollInterval?:number
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:419
Status polling interval in milliseconds
Inherited from
pollTimeout?
optionalpollTimeout?:number
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:421
Status polling timeout in milliseconds
Inherited from
rateLimit?
optionalrateLimit?:number
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:417
Rate limit for API calls (requests per second)
Inherited from
sleep?
optionalsleep?:BridgeSleep
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1831
How the strategies wait (a poll interval, the wait before an inbound registration)
solanaBridgeProgram?
optionalsolanaBridgeProgram?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:411
Solana bridge program ID (optional, defaults to mainnet)
Inherited from
BridgeConfig.solanaBridgeProgram
solanaConnection?
optionalsolanaConnection?:Connection
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:1829
The Solana connection the Solana strategy uses (default: one to solanaRpcUrl)
solanaPrivateKey?
optionalsolanaPrivateKey?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:415
Solana private key (base58) for inbound bridges (optional)
Inherited from
solanaRpcUrl?
optionalsolanaRpcUrl?:string
Defined in: packages/gala-core-sdk/dist/bridge.d.ts:407
Solana RPC URL (optional, defaults to public endpoint)