Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/helius-labs/durable-nonce
https://github.com/helius-labs/durable-nonce
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/helius-labs/durable-nonce
- Owner: helius-labs
- Created: 2023-08-21T19:25:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-12T00:55:21.000Z (9 months ago)
- Last Synced: 2024-04-12T07:17:33.629Z (9 months ago)
- Language: TypeScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solana Durable Nonces Guide
This repository provides a comprehensive guide and practical codebase on leveraging durable nonces for offline transactions on the Solana network.## Overview
On Solana, fetching the latest blockhash is a standard procedure to prevent replay attacks. However, in situations requiring offline signatures, like from cold storages or hardware wallets, the blockhash might expire before you can use it. Durable nonces come as a solution to this problem, ensuring transaction validity even in offline scenarios.
## What's Inside?
- Durable Nonce Creation: Understand the creation of a nonce account and how it gets a unique, persistent nonce.
- Offline Transaction Handling: See how to craft transactions using durable nonces, ensuring they remain valid even when signed offline.
- Utility Functions: Dive into helper functions for encoding, decoding, and managing transactions on Solana.
- Getting Started
## Prerequisites
- Basic JavaScript knowledge.
- NodeJS installed.
- Solana CLI Installed.
- Git installed.
## Environment Setup
Follow the steps outlined in the [guide]("https://helius.dev/blog/") to set up your development environment. This includes cloning the repository, installing necessary packages, and setting up wallet configurations.
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you'd like to change.