import wretch from "./wretch"; export default ({ host, port, wallet, username, password }) => new Proxy( {}, { get: (target, prop) => (...params) => ((method, ...params) => { let url = `http://${host}:${port}/wallet/${wallet}`; return wretch() .url(url) .auth( `Basic ${Buffer.from(`${username}:${password}`).toString( "base64" )}` ) .post({ method, params }) .json(({ result }) => result) })(prop.toLowerCase(), ...params) } ); : coinos-ui.git
coinos ui — legacy coinos.io web app (SvelteKit)coinos
aboutsummaryrefslogblamecommitdiffstats
path: root/.env.production
blob: 8b72abf45352dbcefb8c044ab585800cd097f126 (plain) (tree)
1
2
3
4
5
6
7
8
9