All Projects → talentlessguy → send-tx

talentlessguy / send-tx

Licence: other
🤝 Sign & send Ethereum transactions

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to send-tx

tiddlywiki-ipfs
IPFS with TiddlyWiki
Stars: ✭ 50 (+257.14%)
Mutual labels:  ethersjs
pancakeswap-prediction-winner
🔥 PancakeSwap is afraid of this CHROME EXTENSION (and CLI)! This bot wins almost every 5 minute BNB-USD option on PancakeSwap (and Candle Genie).
Stars: ✭ 229 (+1535.71%)
Mutual labels:  ethersjs
tip-tweet
Tip Tweet is a hybrid dApp that provides a simple way to tip a tweet using Ethereum. Authors can claim their tips using their Twitter account. You only need the tweet URL to tip. 🚀 😎
Stars: ✭ 23 (+64.29%)
Mutual labels:  ethersjs
connect-metamask-react-dapp
Build a simple React / Web3 Dapp that replicates a small portion of the Uniswap v2 interface
Stars: ✭ 204 (+1357.14%)
Mutual labels:  ethersjs
eth-reveal
Dig into Ethereum transactions and reveal their secrets; kinda like having Etherscan in your code.
Stars: ✭ 62 (+342.86%)
Mutual labels:  ethereum-transactions
Android-Wallet-Token-ERC20
Android Wallet (Token ERC20)
Stars: ✭ 30 (+114.29%)
Mutual labels:  ethereum-transaction
blockhead
Crypto portfolio tracker, DeFi dashboard, NFT viewer and data explorer for the Ethereum/EVM-based blockchain ecosystem and the web 3.0-powered metaverse https://gitcoin.co/grants/2966/blockhead
Stars: ✭ 41 (+192.86%)
Mutual labels:  ethersjs
PancakeSwapBot
PancakeSwap prediction bot
Stars: ✭ 38 (+171.43%)
Mutual labels:  ethersjs
evm-bn
Convert fixed-point numbers to ethers big numbers and vice-versa.
Stars: ✭ 33 (+135.71%)
Mutual labels:  ethersjs
staking
A dAPP for minting, burning, and earning on the Synthetix Protocol.
Stars: ✭ 66 (+371.43%)
Mutual labels:  ethersjs
ETH-transactions-storage
Indexer for Ethereum to get transaction list by ETH address
Stars: ✭ 155 (+1007.14%)
Mutual labels:  ethereum-transactions

send-tx

NPM NPM

Sign & send Ethereum transactions.

Install

pnpm i sign-tx ethers

Examples

Send ETH

import { initSignTx } from 'sign-tx'
import { ethers } from 'ethers'

const signer = new ethers.Wallet('PRIVATE_KEY', provider)

const provider = providers.getDefaultProvider(JSONRPC_URL)

const signTx = initSignTx(provider)

const receipt = await signTx({
  from: 'bob.eth',
  to: 'tom.eth',
  value: 0.001
})

Swap

import { initSignTx } from 'sign-tx'
import { ethers } from 'ethers'

const signer = new ethers.Wallet('PRIVATE_KEY', provider)

const provider = providers.getDefaultProvider(JSONRPC_URL)

const signTx = initSignTx(provider)

contract = new ethers.Contract(ROUTER, CONTRACT_ABI)

const swap = contract.swapExactTokensForTokens(inputAmountHex, amountOutMinHex, path, WALLET, deadlineHex)

const receipt = await signTx({
  from: signer,
  nonce: ethers.BigNumber.from(txCount),
  gasLimit: ethers.BigNumber.from('150000'),
  gasPrice: ethers.BigNumber.from(gasPrice),
  to: ROUTER,
  data: data
})
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].