Addresses
Get your address to receive your first BitcoinSV, token or NFT.

Get your Wallet Address

An essential feature of every wallet is the wallet address, which can be either a classical bitcoin address or the more modern paymail alias address. To ensure privacy for the user, each API call will return a different classical address.
1
var parameters = {
2
serviceId: 'optional',
3
walletID: 'optional',
4
}
5
6
const response = await relysia.address(parameters);
Copied!
get
https://api.relysia.com
/v1/address
Get your wallet address and paymail.
Addresses are public, you can share them with anyone.

All Wallet Addresses

In case your application requires to fetch all available addresses, use the code below. This might be useful if you want to manage your own address usage flow.
1
var parameters = {
2
serviceId: 'optional',
3
walletID: 'optional',
4
}
5
6
const response = await relysia.allAddresses(parameters);
Copied!
get
https://api.relysia.com
/v1/allAddresses
Get all wallet addresses.

Paymail vs Classical Addresses

Paymail aliases enable instant p2p transactions with close to no waiting time. They are operating at reduced resource cost and lead to a generally better user experience due to their event based triggering. Classical transactions on the other hand will only be received at your wallet when the UTXO was found on the blockchain, and our infrastructure carefully compared all addresses against all transactions on the network.
But as always, there are more details to it. Classical transactions give users security that the funds are received exactly at that address, and no server incident based rerouting happened. Moreover, it is easier to proof that you send someone funds he the user gave you exactly that address to receive your funds (in case that ever stands up to dispute).
We recommend paymail transactions for smaller transactions (or infrastructure internal transactions) and classical transactions higher transaction amounts to potentially untrusted 3rd parties.