Create Withdrawal Addresses
POST /addresses
Create a new withdrawal address.
Endpoint URL
https://api.mixin.one/addresses
Payload
{
"asset_id": "the asset's asset_id",
"label": "the label for the address, Min: 1, Max: 64",
"destination": "the withdrawal address, Max 128",
"tag": "Optional, the withdrawal memo",
"pin_base64": "encrypted PIN",
}
How to generate TIP Pin
"TIP:ADDRESS:ADD:" + asset_id + destination + tag + label
pin_base64 is the sha256-256 sum of above value
Example request
curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/addresses --data '{"asset_id":"43d61dcd-e413-450d-80b8-101d5e903357","label":"Jason ETH Address","pin":"nRF5OyFmO4REG6lcPk1jwKDJrENim791uLe+HH0g7EwQHXK9FgCMJl5RDKbeCNDW","destination":"0x86fa049857e0209aa7d9e616f7eb3b3b78ecfdb0", "tag": "", "label": ""}'
Response
{
"data":{
"type": "address",
"address_id": "e1524f3c-2e4f-411f-8a06-b5e1b1601308",
"asset_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"destination":"0x86Fa049857E0209aa7D9e616F7eb3b3B78ECfdb0",
"tag": "",
"label": "Eth Address",
"fee_asset_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"fee": "0.016",
"reserve": "0",
"dust": "0.0001",
"updated_at": "2018-07-10T03:58:17.5559296Z"
}
}