Skip to content

Commit

Permalink
Update links to BNBChain Github repos (#159)
Browse files Browse the repository at this point in the history
* Update links to BNBChain Github repos

* Updated links to go-sdk repo
  • Loading branch information
RumeelHussainbnb authored Jun 13, 2022
1 parent ca862ea commit 669b536
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Go version above 1.11

### Use go mod(recommend)

Add "github.com/binance-chain/go-sdk" dependency into your go.mod file. Example:
Add "github.com/bnb-chain/go-sdk" dependency into your go.mod file. Example:
```go
require (
github.com/binance-chain/go-sdk latest
github.com/bnb-chain/go-sdk latest
)
replace github.com/tendermint/go-amino => github.com/binance-chain/bnc-go-amino v0.14.1-binance.1
replace github.com/tendermint/go-amino => github.com/bnb-chain/bnc-go-amino v0.14.1-binance.1
```

**NOTE**: Please make sure you use binance-chain amino repo instead of tendermint amino.
Expand Down Expand Up @@ -124,7 +124,7 @@ assert.True(t, bytes.Equal(encryPlain1, encryPlain2))
### Init Client

```GO
import sdk "github.com/binance-chain/go-sdk/client"
import sdk "https://github.com/bnb-chain/go-sdk/tree/master/client"

mnemonic := "lock globe panda armed mandate fabric couple dove climb step stove price recall decrease fire sail ring media enhance excite deny valid ceiling arm"
//----- Init KeyManager -------------
Expand Down Expand Up @@ -165,7 +165,7 @@ _, err = client.CreateOrder(tradeSymbol, nativeSymbol, msg.OrderSide.BUY, 100000
_, err = client.CreateOrder(tradeSymbol, nativeSymbol, msg.OrderSide.BUY, 100000000, 100000000, true, transaction.WithAcNumAndSequence(acc.Number,acc.Sequence+2))
```

For more API usage documentation, please check the [wiki](https://github.com/binance-chain/go-sdk/wiki)..
For more API usage documentation, please check the [wiki](https://github.com/bnb-chain/go-sdk/wiki)..

## RPC Client(Beta)
RPC endpoints may be used to interact with a node directly over HTTP or websockets. Using RPC, you may perform low-level
Expand All @@ -177,4 +177,4 @@ light client.
nodeAddr := "tcp://127.0.0.1:27147"
testClientInstance := rpc.NewRPCClient(nodeAddr,types.TestNetwork)
status, err := c.Status()
```
```

0 comments on commit 669b536

Please sign in to comment.