nmkr-studio-api
Version:
Typesafe API Client to work with the NMKR Studio V2 API
70 lines • 2.76 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VestingAddressesService = void 0;
class VestingAddressesService {
constructor(httpRequest) {
this.httpRequest = httpRequest;
}
/**
* Creates a vesting/staking address. Assets can be locked on a vesting address for a certain period of time.
* @returns CreateVestingAddressResultClass
* @throws ApiError
*/
postV2CreateVestingAddress({ customerid, requestBody, }) {
return this.httpRequest.request({
method: 'POST',
url: '/v2/CreateVestingAddress/{customerid}',
path: {
customerid: customerid,
},
body: requestBody,
mediaType: 'application/json',
errors: {
401: `The access was denied. (Wrong or expired APIKEY, wrong projectid etc.)`,
406: `See the errormessage in the resultset for further information`,
500: `Internal server error - see the errormessage in the resultset`,
},
});
}
/**
* Returns all vesting addresses from a customer account
* @returns TxInAddressesClass Returns the vesting/locking addresses
* @throws ApiError
*/
getV2GetUtxoFromVestingAddress({ customerid, address, }) {
return this.httpRequest.request({
method: 'GET',
url: '/v2/GetUtxoFromVestingAddress/{customerid}/{address}',
path: {
customerid: customerid,
address: address,
},
errors: {
401: `The access was denied. (Wrong or expired APIKEY, wrong projectid etc.)`,
406: `See the errormessage in the resultset for further information`,
500: `Internal server error - see the errormessage in the resultset`,
},
});
}
/**
* Returns all vesting addresses from a customer account
* @returns GetVestingAddressClass Returns the vesting/locking addresses
* @throws ApiError
*/
getV2GetVestingAddresses({ customerid, }) {
return this.httpRequest.request({
method: 'GET',
url: '/v2/GetVestingAddresses/{customerid}',
path: {
customerid: customerid,
},
errors: {
401: `The access was denied. (Wrong or expired APIKEY, wrong projectid etc.)`,
406: `See the errormessage in the resultset for further information`,
500: `Internal server error - see the errormessage in the resultset`,
},
});
}
}
exports.VestingAddressesService = VestingAddressesService;
//# sourceMappingURL=VestingAddressesService.js.map