node_modules/@velas/solana-web3/lib/index.browser.esm.js
/**
   * Parse a wire transaction into a Transaction object.
   */
Parse a wire transaction into a Transaction object.
Parse a wire transaction into a Transaction object .
static from(buffer$1) {
    let byteArray = [...buffer$1];
    const signatureCount = decodeLength(byteArray);
    let signatures = [];
    for (let i = 0; i < signatureCount; i++) {
      const signature = byteArray.slice(0, SIGNATURE_LENGTH);
      byteArray = byteArray.slice(SIGNATURE_LENGTH);
      signatures.push(bs58.encode(buffer.Buffer.from(signature)));
    }
    return Transaction.populate(Message.from(byteArray), signatures);
  }
static from ( buffer$1 ) { let byteArray = [ ... buffer$1 ] ; const signatureCount = decodeLength ( byteArray ) ; let signatures = [ ] ; for ( let i = 0 ; i < signatureCount ; i ++ ) { const signature = byteArray . slice ( 0 , SIGNATURE_LENGTH ) ; byteArray = byteArray . slice ( SIGNATURE_LENGTH ) ; signatures . push ( bs58 . encode ( buffer . Buffer . from ( signature ) ) ) ; } return Transaction . populate ( Message . from ( byteArray ) , signatures ) ; }
Parse a wire transaction into a Transaction object.
Parse a wire transaction into a Transaction object .
// Slice up wire data