Coder Social home page Coder Social logo

resigner's Introduction

resigner

Warning

Use at your own risk, I take no responsibility for you losing money from this tool. Providing no support for this tool at all.

About

Solana transaction resigner, useful for resigning transactions to work around dapp rpc issues.

Usage

  1. Acquire Transaction Payload

Somehow get ahold of an sendTransaction payload. For example if you are using a dapp and their RPC is behind a number of slots leading to failed transactions, you can recover it from the network requests tab. The following image shows an overview of the data we are interested in getting

Save this to a file, name and extension doesn't mater. This example will use info_file. Make sure to copy the entire transaction payload.

  1. Resigning Transaction Payload

First generate a configuration file, this will store the RPC endpoint we will be talking to, as well as how to access your private key. Ledger hardware wallets are supported, as well as the key files generated by solana-keygen.

$> cargo build && cp target/debug/cli resigner
$> ./resigner config gen
$> vim config.yaml
... edit the file ...

#
# the following is an example of a configuration which uses a ledger wallet
# as well as a solana quiknode nedpoint
#---
#key_path: "usb://ledger?key=0"
#rpc_endpoints:
#  primary_endpoint:
#    http_url: "https://.quiknode.pro/.../"
#    ws_url: "ws://api.mainnet-beta.solana.com"


... finished editing the file ...
$> ./resigner resign --input-file input_file
# this will resign and resend the transaction

resigner's People

Contributors

bonedaddy avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.