Skip to content

Gravity-Tech/ibport-caller-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caller

Call SuSy Bridge from Golang. Check other tutorials in the Gravity documentation.

Configure parameters in main.go

  • Set senderPrivKeyStr to your private key.
  • Set tokenAddress and ibportAddress to values from from Contract addresses.
  • Set receiverAddress to Waves address.
  • Set amount in 18 decimals, so 1000000000000000000 for 1.
nodeUrl := "https://bsc-dataseed.binance.org"

senderPrivKeyStr := "0x2d523a2573c8f40eaba9e0cf1d7ed1d972872522ef1f57c47be23e0da00c376b"

tokenAddress := "0xc4b6F32B84657E9f6a73fE119f0967bE5bA8CF05"
ibportAddress := "0x8c0e11a6E692d02f71598AB5050083ED691Eb760"

receiverAddress := "3PG4DtkmcZjPGRpXujbD44ZKydo1D9Y6r2N"
amount := int64(1000000000000000000)

Launch swap

go run main.go

Check explorer

BSC - https://bscscan.com/token/0xc4b6F32B84657E9f6a73fE119f0967bE5bA8CF05

Contract addresses

USDN BSC

  • token: 0xc4b6f32b84657e9f6a73fe119f0967be5ba8cf05
  • ib-port: 0x8c0e11a6E692d02f71598AB5050083ED691Eb760

gwaNSBT BSC

  • token: 0xaDb688CC2D5A729d7e5ddEcDA8B63ED118F41eA4
  • ib-port: 0xf427525Eb648d14c1Da28E530e9fe7ab9832c411

NSBT Legacy BSC

  • token: 0x496d451dDAB0F79346f773CbC2eb7Aee58446019
  • ib-port: 0x59622815BADB181a2c37052136a9480C6A4a4eA6

About

go utility to call SuSy bridge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages