Skip to content
StellarBurrito
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.eslintrc.js
.gitignore
README.md
StellarBurrito.js
account.js
asset.js
assetOperations.js
badge.svg
config.js
error.js
fee.js
ledger.js
memo.js
orderbook.js
package-lock.json
package.json

README.md

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')
...
You can’t perform that action at this time.