Init Stream
const now = nowInSec();
const startTime = now + 180;
/*
* three min added deliberately because it takes times for your payload to hit
* zebec program in solana
**/
const endTime = startTime + 6000; // 100 min
const streamAmount = "1";
const receiver = <evm address>;
const sender = signer.address;
const canCancel = true;
const canUpdate = true;
const tokenMint = "<solana mint address>";
const sourceChain = CHAIN_ID_BSC;
const receipt = await ethClient.initStream(
startTime.toString(),
endTime.toString(),
streamAmount,
receiver,
sender,
canCancel,
canUpdate,
tokenMint,
);Last updated