Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kenmueller/astra-exchange-npm
Astra Exchange API npm package
https://github.com/kenmueller/astra-exchange-npm
Last synced: about 2 months ago
JSON representation
Astra Exchange API npm package
- Host: GitHub
- URL: https://github.com/kenmueller/astra-exchange-npm
- Owner: kenmueller
- Created: 2019-04-21T20:05:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-11T08:23:43.000Z (over 3 years ago)
- Last Synced: 2024-11-04T23:20:57.691Z (2 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/astra-exchange
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **[Astra Exchange API Documentation](https://astra.exchange/documentation)**
## **[View on npm](https://www.npmjs.com/package/astra-exchange)**
## Download
```bash
npm i astra-exchange
```## Usage
**JavaScript:**
```javascript
const exchange = require('astra-exchange')
```**TypeScript:**
```typescript
import * as exchange from 'astra-exchange'
```**Includes type definitions**
## Example
```javascript
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](https://astra.exchange/documentation)**