Skip to content

Fantom-foundation/web3_ftm_examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DELEGATE

Generate a private/public keypair.

Edit delegate.js

Replace <private-key> with private key
Replace <address> with your address
Replace <amount-to-delegate> with the amount in FTM you want to delegate
Replace validator with the validator ID you want to delegate to

const privateKey = Buffer.from(
  '<private-key>',
  'hex',
)
const address = "<address>"
const value = "<amount-to-delegate>"
const validator = 1 // ID of the validator you want to delegate to

Install and run

git clone https://github.com/Fantom-foundation/web3_ftm_examples.git
cd web3_ftm_examples
npm install
node delegate.js

About

Example directory for fantom web3 calls

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published