Interface IbcBridge<N, C>
Type Parameters
-
N extends Network
-
C extends Chain
Methods
fetchTransferChannel
- fetchTransferChannel(chain): Promise<null | string>
-
Parameters
-
chain: "Solana" | "Algorand" | "Near" | "Sui" | "Aptos" | "Btc" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Terra" | "Terra2" | "Injective" | "Osmosis" | "Pythnet" | "Xpla" | "Sei" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Dymension"
Returns Promise<null | string>
getTransferChannel
- getTransferChannel(chain): null | string
-
Parameters
-
chain: "Solana" | "Algorand" | "Near" | "Sui" | "Aptos" | "Btc" | "Acala" | "Arbitrum" | "Aurora" | "Avalanche" | "Base" | "Bsc" | "Celo" | "Ethereum" | "Fantom" | "Gnosis" | "Karura" | "Klaytn" | "Moonbeam" | "Neon" | "Oasis" | "Optimism" | "Polygon" | "Rootstock" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "Terra" | "Terra2" | "Injective" | "Osmosis" | "Pythnet" | "Xpla" | "Sei" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Dymension"
Returns null | string
lookupMessageFromIbcMsgId
- lookupMessageFromIbcMsgId(msg): Promise<null | WormholeMessageId>
-
lookupTransferFromIbcMsgId
- lookupTransferFromIbcMsgId(msg): Promise<IbcTransferInfo[]>
-
Returns Promise<IbcTransferInfo[]>
lookupTransferFromMsg
- lookupTransferFromMsg(payload): Promise<IbcTransferInfo[]>
-
Parameters
-
payload: GatewayTransferMsg | GatewayTransferWithPayloadMsg
Returns Promise<IbcTransferInfo[]>
lookupTransferFromTx
- lookupTransferFromTx(txid): Promise<IbcTransferInfo[]>
-
Returns Promise<IbcTransferInfo[]>
transfer
- transfer(sender, recipient, token, amount, payload?): AsyncGenerator<UnsignedTransaction<N, C>, any, unknown>
-
Parameters
-
-
-
-
amount: bigint
-
Optional
payload: Uint8Array
Returns AsyncGenerator<UnsignedTransaction<N, C>, any, unknown>
IbcBridge provides an interface to use the IBC token transfer protocol
See more here https://tutorials.cosmos.network/academy/3-ibc/7-token-transfer.html