Withdraw From Zebec
Withdraw from vault to proxy accounts
const withdrawer = signer.address
const withdrawerAddrInSolana = ZebecSolBridgeClient.getProxyUserKey(
withdrawer,
sourceChain,
SOL_ZEBEC_BRIDGE_ADDRESS,
);
const tokenAddrInSolana = "<solana mint key>";
const amount = "1";
const reciept = await ethClient.withdraw(amount, withdrawer, tokenAddrInSolana);const sequence = parseSequenceFromLogEth(
receipt,
getBridgeAddressForChain(sourceChain)
);
const zebecEmitterAddress = getEmitterAddressEth(BSC_ZEBEC_BRIDGE_ADDRESS);
const { vaaBytes } = await getSignedVAAWithRetry(
WORMHOLE_RPC_HOSTS,
sourceChain,
zebecEmitterAddress,
sequence
);Last updated