Creates a new Getline client.
Address of metabackend. Production address is
https://0.api.getline.in
.
Network identifier. Currently only "4"
(Rinkeby) is
supported.
Web3 provider to use. If not given, the client will try to find an injected one from Metamask. Otherwise, it will fall back to http://localhost:8545/.
Token that is used for collateral and loans in the demo.
Returns loan identifier by a given short identifier.
Short identifier of loan (shortId
member of a Loan
object).
Loan identifier by shortId.
Creates a new Getline Loan on the blockchain and indexes it in the Getline system.
Currently these loans use TEST_TOKEN
as both the collateral and loan
token. This will be changed in the future.
Human-readable description of loan. Markdown.
Amount of loan requested.
Loan interest in permil.
Newly created loan.
Generated using TypeDoc
Getline client library.
This library lets you view and manage Getline.in loans programatically. It runs under node.js and in Chrome with the Metamask extension. You will be automatically logged in as the first address from your web3 provider.
The library is fully async/await compatible, which means you can use it both with
Promise.then/.catch
andawait
blocks. All calls that interact with the blockchain will block until the result propagates.Currently this library only allows you to create loans on the Rinkeby testnet - this is by design until we go out of demo.