uptimesv / polynym

A simple API to resolve BSV addresses from HandCash, RelayX and PayMail handles
https://polynym.io
MIT License
27 stars 3 forks source link

Getting $handle not found error #1

Closed brandonbryant12 closed 5 years ago

brandonbryant12 commented 5 years ago

Handcash 2.0 no longer supports the old api. All handcash handles resolve to handle@handcash.io

A quick fix:

 //HandCash

async function callHandCash(id) {

  id = id.toLowerCase();

  id = id.replace('$','');

  id = `${id}@handcash.io`;

  return axios.get('https://api.polynym.io/getAddress/' + id);

}

you will also have to return x.data.address from callHandCash(id) rather thanx.data.receivingAddress`

deanmlittle commented 5 years ago

Cheers dude. I've patched this on server, npm and github :)