0.33.0 • Published 8 months ago

@rango-dev/signer-solana v0.33.0

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

@rango-dev/signer-solana

Summary

Signer for Rango Solana Transactions

Currecntly all Rango Solana transactions are Versioned (and serialized), only Solana Wrapper is already using the legacy format. (which is used only for SOL <-> WSol routes)

Versioned Transaction Sign Flow Overview:

  1. Get connection and recent blockhash

    const connection = new Connection(SOLANA_RPC_URL, {
      commitment: 'confirmed',
      disableRetryOnRateLimit: false,
    });
    const latestBlock = await connection.getLatestBlockhash('confirmed');
  2. Prepare the transaction

    const transaction = VersionedTransaction.deserialize(
      new Uint8Array(tx.serializedMessage)
    );
    transaction.message.recentBlockhash = recentBlockhash;
  3. Simulate the transaction

    const { value } = await connection.simulateTransaction(transaction, {
      replaceRecentBlockhash: true,
      commitment: 'processed',
    });
  4. Sign the transaction

    const signedTransaction = await solanaProvider.signTransaction(
      solanaWeb3Transaction
    );
    const serializedTransaction = Buffer.from(signedTransaction.serialize());
  5. Send and confirm the transaction (similar to jupiter suggested code)

    const { txId, txResponse } = await transactionSenderAndConfirmationWaiter({
     connection,
     serializedTransaction,
     blockhashWithExpiryBlockHeight: {
       blockhash: latestBlock.blockhash,
       lastValidBlockHeight: latestBlock.lastValidBlockHeight,
     },
    });   ```
0.32.1-next.0

9 months ago

0.32.1-next.1

9 months ago

0.32.1-next.2

9 months ago

0.33.0

8 months ago

0.32.0

9 months ago

0.28.1-next.1

1 year ago

0.28.1-next.2

1 year ago

0.30.1-next.3

11 months ago

0.30.1-next.2

11 months ago

0.30.1-next.1

11 months ago

0.30.1-next.0

11 months ago

0.28.1-next.0

1 year ago

0.30.0

12 months ago

0.29.0

1 year ago

0.29.1-next.1

12 months ago

0.29.1-next.0

1 year ago

0.31.1-next.0

10 months ago

0.31.0

10 months ago

0.27.1-next.3

1 year ago

0.31.1-next.1

10 months ago

0.28.0

1 year ago

0.27.1-next.2

1 year ago

0.27.1-next.1

1 year ago

0.27.1-next.0

1 year ago

0.27.0

1 year ago

0.26.1-next.2

1 year ago

0.26.1-next.1

1 year ago

0.26.1-next.0

1 year ago

0.26.0

1 year ago

0.25.1-next.0

1 year ago

0.25.0

1 year ago

0.23.0

1 year ago

0.23.1-next.0

1 year ago

0.24.1-next.0

1 year ago

0.24.0

1 year ago

0.22.0

1 year ago

0.21.1-next.2

2 years ago

0.20.0

2 years ago

0.19.0

2 years ago

0.11.0

2 years ago

0.13.0

2 years ago

0.15.0

2 years ago

0.17.0

2 years ago

0.5.1-next.4

2 years ago

0.8.1-next.0

2 years ago

0.8.1-next.1

2 years ago

0.9.0

2 years ago

0.7.0

2 years ago

0.9.1-next.0

2 years ago

0.21.0

2 years ago

0.21.1-next.0

2 years ago

0.21.1-next.1

2 years ago

0.12.0

2 years ago

0.14.0

2 years ago

0.16.0

2 years ago

0.18.0

2 years ago

0.10.0

2 years ago

0.15.1-next.0

2 years ago

0.15.1-next.2

2 years ago

0.15.1-next.1

2 years ago

0.8.0

2 years ago

0.6.0

2 years ago

0.5.1-next.3

2 years ago

0.5.1-next.2

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.15-next.6

2 years ago

0.1.15-next.5

2 years ago

0.1.15-next.2

2 years ago

0.1.15-next.1

2 years ago

0.1.15-next.4

2 years ago

0.1.15-next.3

2 years ago

0.1.15-next.0

2 years ago

0.5.1-next.1

2 years ago

0.5.1-next.0

2 years ago

0.1.13-next.0

2 years ago

0.1.13-next.1

2 years ago

0.1.13-next.2

2 years ago

0.1.13-next.3

2 years ago

0.1.13-next.4

2 years ago

0.1.13-next.5

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.11-next.85

2 years ago

0.1.11-next.84

2 years ago

0.1.11-next.83

2 years ago

0.1.11-next.82

2 years ago

0.1.11-next.80

2 years ago

0.1.11-next.79

2 years ago

0.1.11-next.78

2 years ago

0.1.11-next.77

2 years ago