Signup
Search…
Login

Introduction

Signup provides an easy to use Login feature so developers can request the users for their Bitcoin Cash address and Cash Account. This API is a client side login and should not be used as a proof to provide server side resources to the user. If you need something like that, you need to ask users to sign a payload for you (more on this in Signatures section).

Request

1
signup.requestAccess(["bch_address", "cash_account"])
2
.then(({cashAccount, bchAddr}) => {
3
// logged in
4
console.log(cashAccount, bchAddr);
5
});
Copied!
Or you can use Async Await syntax:
1
const { cashAccount, bchAddr } = await signup.requestAccess([
2
"bch_address",
3
"cash_account"
4
]);
5
// logged in
6
console.log(cashAccount, bchAddr);
Copied!
Last modified 1yr ago
Copy link