0.0.9 • Published 5 months ago

@ironforge/req2code v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

req2code Build+Test+Lint

Converts a request to the Ironforge API to code snippets in different languages.

Example Usage

const API_KEY = '<user-api-key>'
const render = new Req2Code(API_KEY)

const rendered = render.accounts.curl.filterByType({
  cluster: 'devnet',
  program: 'cndy3Z4yapfJBmL3ShUp5exZKqR3z33thTzeNMm2gRZ',
  accountType: 'CandyMachine',
  body: { filter: { 'data.data.price': 250 } },
  limit: 5,
  offset: 0,
  cacheControl: 'max-age=5',
})

console.log(rendered)
curl 'https://accounts.ironforge.network/v1/devnet/cndy3Z4yapfJBmL3ShUp5exZKqR3z33thTzeNMm2gRZ'\
'/find/CandyMachine?limit=5&offset=0&apiKey=<user-api-key>' \
  -H 'content-type: application/json'\
  -H 'x-ironforge-cache-control: max-age=5'\
  --compressed

LICENSE

MIT

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

9 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago