BTCnames


an aliasing service for Bitcoin user.
How does the API works?
The API is at the moment, aside from one feature, a straight GET API. At the moment it offers only three features: Add, Resolve, Delete. Additionally it offers the optional feature to redirect after completion with a result field using GET. This is how the front end of this site uses it. The only POST feature at the moment is a simple sha256 password hasher which calls the GET api after completion.
What is its syntax?
To add an entry:
api.php?type=add&deposit=btc_hash&alias=plainusername&key=password[&redirect=url]
To resolve an entry:
api.php?type=resolve&alias=plainusername[&redirect=url]
To delete an entry:
api.php?type=resolve&alias=plainusername&key=password[&redirect=url]
Optional fields are marked with [].
How to deal with password?
Within the API the password is hashed with salt, but aside from this, its recommended to hash it before using the API, just make sure the hashing algorithm don't change without changing the entries.
All entries added using the front end are hashed first using the API post request. So if you added entries manually which should then be handled automatically, there should be a sha256 hashing prior the API call.
Is the API open source?
Yes it is: BTCnames@github