astra-exchange
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Astra Exchange API Documentation

View on npm

Download

npm i astra-exchange

Usage

JavaScript:

const exchange = require('astra-exchange')

TypeScript:

import * as exchange from 'astra-exchange'

Includes type definitions

Example

exchange.transact('1234', 'e95Y6tKOvIS7CBlEdBn2UknzxMQ2', 'GwZX5OnFzGUl0UlXH97EGIeW70p1', 20, 'Take my money').then(record => {
    console.log(`Successful transaction. Here's the record: ${record}`)
}).catch(error => {
    console.log(`${error.status} error: ${error.message}`)
})

Read more

Package Sidebar

Install

npm i astra-exchange

Weekly Downloads

4

Version

1.1.3

License

MIT

Unpacked Size

33 kB

Total Files

23

Last publish

Collaborators

  • kenmueller