npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

stellarburrito

0.1.4 • Public • Published

StellarBurrito

StellarBurrito is an opensource wrapper for js stellar-sdk Mymage

Getting Started

Create a testnet account

This will create a new account on testnet with 10 000 XLM

let Account=require('stellarburrito').Account
let Alice= new Account()
await Alice.createTestAccount()

##### Pay Let's pay 10 XLM From Alice to Bob

let Account=require('stellarburrito').Account
let Alice= new Account('SDIMQ463MVOETWAOBXLSUSSZNKMA7GOCZBS4QKVYJJC53IPUAOW2QRTR')
let Bob = new Account('GBQWXG6TVJ52GGW77WM6ZJKZKWG5O5Q6T4KKTMPXTW6NNH66J4ZOBNYJ')
await Alice.Pay({destination:Bob,amount:'10'})

##### Account Info Read infos of Alice's account

let Alice= new Account('SDIMQ463MVOETWAOBXLSUSSZNKMA7GOCZBS4QKVYJJC53IPUAOW2QRTR')
await Alice.Load()
console.log(Alice.balances)
console.log(Alice.data)
console.log(Alice.trustlines)
console.log(Alice.flags)
console.log(Alice.offers)
...

##### Set Account's Options

let Alice= new Account('SDIMQ463MVOETWAOBXLSUSSZNKMA7GOCZBS4QKVYJJC53IPUAOW2QRTR')
await Alice.setHomeDomain('stellarburrito.com')
await Alice.manageData('data','example')
...

install

npm i stellarburrito

Downloadsweekly downloads

54

version

0.1.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability