jito-labs / jito-ts

Jito Typescript SDK
Other
128 stars 60 forks source link

transaction 1111111111111111111111111111111111111111111111111111111111111111 is invalid #40

Closed wkshare closed 3 months ago

wkshare commented 3 months ago

Why show this error???

        // send jito boundle.
        const jitoB = new Bundle([], 5);
        const jitoC = searcherClient(
          process.env.BLOCK_ENGINE_URL
          // wallet.payer
        );
        const _tipAccount = (await jitoC.getTipAccounts())[0];
        logger.info(`tip account: ${_tipAccount}`);
        const tipAccount = new PublicKey(_tipAccount);

        jitoB.addTransactions(orderTx);
        jitoB.addTipTx(
          wallet.payer,
          123_321,
          tipAccount,
          (await driftClient.connection.getLatestBlockhash()).blockhash
        );
        try {
          const resp = await jitoC.sendBundle(jitoB);
          logger.info(`SEND COMPLETED: ${resp} `);
        } catch (error) {
          logger.info(`SEND FAILED: ${error}`);
        }
      }
segfaultdoc commented 3 months ago

Need more details what's your error?

segfaultdoc commented 3 months ago

Closing, should ask for support in Jito or Drift Discord