Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffWScott committed Sep 8, 2022
1 parent 139722c commit a4043c3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Use Lamden.TransactionBuilder(networkInfo, txInfo) to create a new Lamden transa

### Create networkInfo object
create an object that describes the masternode/network that you are going to send the transcation to.
use `version` to indicate this is a Lamden 2.0 netowrk. Leave off version for Lamden 1.0 networks.
```javascript
let networkInfo = {
// Optional: Name of network
Expand All @@ -125,7 +126,10 @@ let networkInfo = {
type: 'testnet',

// Required: must begin with http or https
hosts: ['https://testnet-master-1.lamden.io:443']
hosts: ['https://testnet-master-1.lamden.io:443'],

// indicate this is a Lamden 2.0 netowrk
version: 2
}
```
### Create txInfo object
Expand Down Expand Up @@ -220,7 +224,8 @@ Create a network instance will allow you to call the masternode API. This class
let testnet = new Network({
name: 'Lamden Public Testnet',
type: 'testnet',
hosts: ['https://testnet-master-1.lamden.io:443']
hosts: ['https://testnet-master-1.lamden.io:443'],
version: 2 // Use for Lamden 2.0 networks. Leave off for Lamden 1.0 networks.
})

testnet.events.on('online', (online) => {
Expand Down

0 comments on commit a4043c3

Please sign in to comment.