jito-labs / jito-ts

Jito Typescript SDK
Other
103 stars 53 forks source link

transaction 1111111111111111111111111111111111111111111111111111111111111111 is invalid #40

Closed wkshare closed 1 month ago

wkshare commented 1 month 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 1 month ago

Need more details what's your error?

segfaultdoc commented 1 month ago

Closing, should ask for support in Jito or Drift Discord