Giter Site home page Giter Site logo

48_puissant_sdk's Introduction

puissant_sdk

Usage SDK

get package

> go get -u github.com/bnb48club/puissant_sdk/bnb48.sdk

import package

import "github.com/bnb48club/puissant_sdk/bnb48.sdk"

example

package main

import (
	"context"
	"log"

	"github.com/bnb48club/puissant_sdk/bnb48.sdk"
)

func main() {
	client, err := bnb48.Dial("general rpc host", "puissant rpc host")
	if err != nil {
		log.Panicln(err.Error())
	}

	gasPrice, err := client.SuggestGasPrice(context.Background())
	if err != nil {
		log.Panicln(err.Error())
	}
	log.Printf("gasPrice: %s", gasPrice.String())
}

demo require

  • bsc mainnet account balance is greater than 0.1 tbnb

test demo selfTransfer

create config.yaml file

wallet:
  # wallet privateKey
  - d88873b743af4da75edc17c0430be1691e1a0801b2a76575bc85597b6c17e336

send puissant txs

> git clone https://github.com/bnb48club/puissant_sdk.git && cd puissant_sdk
> go run github.com/bnb48club/puissant_sdk/demo/selfTransfer

test demo multiTransfer

create config.yaml file

wallet:
  # wallet privateKeys
  - d88873b743af4da75edc17c0430be1691e1a0801b2a76575bc85597b6c17e336
  - 17cddb8204ed4e808aef43a97a6f20dec8070426ce967c7375bdd33fd0693807
  - be33dfca66b35bc107e5d8e7f6e0f6232e81149b7501c36cbdbd9c52f571202c
  - 2d79317acd39955d97249c9b942031b645df61fdcadd328cb487387840c6b086
  - 7a82ed6033f5e24074021acbbb8a8dc90b87a6d67e4c18b1634f328dbc34cd29

send puissant txs

> git clone https://github.com/bnb48club/puissant_sdk.git && cd puissant_sdk
> go run github.com/bnb48club/puissant_sdk/demo/multiTransfer

48_puissant_sdk's People

Contributors

du5 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.