silo-deployer-sdk 1.1.2
Install from the command line:
Learn more about npm packages
$ npm install @aurora-is-near/silo-deployer-sdk@1.1.2
Install via package.json:
"@aurora-is-near/silo-deployer-sdk": "1.1.2"
About this version
A client for the Silo Deployer API.
This client is generated automatically on a schedule based on the OpenAPI specs published at https://github.com/aurora-is-near/silo-deployer/blob/main/docs/swagger.yaml.
yarn add @aurora-is-near/silo-deployer-sdk
Create the API client as follows:
import { createApiClient } from '@aurora-is-near/silo-deployer-sdk';
const client = createApiClient();
The generated client object exposes functions for each API operation, where the name of each function is the operationId defined in the OpenAPI specification, for example:
client.setBaseToken({
params: {
contract_id: "0x4e45415e.c.aurora",
},
data: {
base_token_addr: "usdt.tether-token.near",
},
})
Each function is called with an object containing the following properties:
An object containing properties that are mapped to any named route parameters.
For example, if you have the route /user/:name
, then the name
property should
be passed in as params: { name: 'Alex' }
.
An object containing a property for each query string parameter.
An object containing key-value to submit as the request body (i.e. for POST or PUT requests).
Details
- silo-deployer-sdk
-
aurora-is-near
- 12 days ago
- UNLICENSED
- 12 dependencies
Assets
- silo-deployer-sdk-1.1.2.tgz
Download activity
- Total downloads 1
- Last 30 days 1
- Last week 0
- Today 0