0.27.0 • Published 3 days ago

@rango-dev/signer-solana v0.27.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 days 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.27.1-next.2

3 days ago

0.27.1-next.1

4 days ago

0.27.1-next.0

17 days ago

0.27.0

18 days ago

0.26.1-next.2

18 days ago

0.26.1-next.1

25 days ago

0.26.1-next.0

25 days ago

0.26.0

3 months ago

0.25.1-next.0

3 months ago

0.25.0

5 months ago

0.23.0

5 months ago

0.23.1-next.0

5 months ago

0.24.1-next.0

5 months ago

0.24.0

5 months ago

0.22.0

5 months ago

0.21.1-next.2

5 months ago

0.20.0

6 months ago

0.19.0

6 months ago

0.11.0

9 months ago

0.13.0

9 months ago

0.15.0

9 months ago

0.17.0

7 months ago

0.5.1-next.4

10 months ago

0.8.1-next.0

10 months ago

0.8.1-next.1

10 months ago

0.9.0

9 months ago

0.7.0

10 months ago

0.9.1-next.0

9 months ago

0.21.0

6 months ago

0.21.1-next.0

6 months ago

0.21.1-next.1

6 months ago

0.12.0

9 months ago

0.14.0

9 months ago

0.16.0

7 months ago

0.18.0

6 months ago

0.10.0

9 months ago

0.15.1-next.0

7 months ago

0.15.1-next.2

7 months ago

0.15.1-next.1

7 months ago

0.8.0

10 months ago

0.6.0

10 months ago

0.5.1-next.3

11 months ago

0.5.1-next.2

11 months ago

0.1.13

12 months ago

0.1.14

12 months ago

0.1.15-next.6

12 months ago

0.1.15-next.5

12 months ago

0.1.15-next.2

12 months ago

0.1.15-next.1

12 months ago

0.1.15-next.4

12 months ago

0.1.15-next.3

12 months ago

0.1.15-next.0

12 months ago

0.5.1-next.1

11 months ago

0.5.1-next.0

11 months ago

0.1.13-next.0

12 months ago

0.1.13-next.1

12 months ago

0.1.13-next.2

12 months ago

0.1.13-next.3

12 months ago

0.1.13-next.4

12 months ago

0.1.13-next.5

12 months ago

0.3.0

12 months ago

0.2.0

12 months ago

0.5.0

12 months ago

0.4.0

12 months ago

0.1.12

1 year ago

0.1.11

1 year ago

0.1.11-next.85

1 year ago

0.1.11-next.84

1 year ago

0.1.11-next.83

1 year ago

0.1.11-next.82

1 year ago

0.1.11-next.80

1 year ago

0.1.11-next.79

1 year ago

0.1.11-next.78

1 year ago

0.1.11-next.77

1 year ago