Sha256: d97913d03aa24ab3cbe3d06c29fd3574f84cd555287c61330e96f9c10f5a7f93

Contents?: true

Size: 772 Bytes

Versions: 1

Compression:

Stored size: 772 Bytes

Contents

import request from '../../tools/request';
/**
 * GET /leasing/active/{address}
 * Get all active leases for an address
 */
export function fetchActive(base, address, options = Object.create(null)) {
    return request({ base, url: `/leasing/active/${address}`, options });
}
/**
 * GET /leasing/info/
 * Get lease transactions info.
 */
export function fetchLeasingInfo(base, ids, options = Object.create(null)) {
    const searchParams = `{\"ids\":[${ids.map(id => `\"${id}\"`).join(',')}]}`;
    return request({
        base, url: `/leasing/info/`,
        options: Object.assign(Object.assign({}, options), { body: searchParams, method: 'POST', headers: {
                'Content-Type': 'application/json'
            } })
    });
}
//# sourceMappingURL=index.js.map

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
waves_lib-0.1.0 js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js