Description
This endpoint is used to create an Address in Taurus-PROTECT. To understand what an Address is and how to use it, please refer to the following page in the Taurus User Guides.
This is a POST method with a JSON payload containing the address details.
For example:
Required Parameters
- walletId: The ID of the new Wallet where the address will belong.
- label: The label assigned to the newly-created address. Presented as
Address Namein the GUI.
Dependency
Important: You cannot create an address without first creating a wallet. The Wallet ID must be an ID of an existing wallet. If the walletidparameter does not match an existing wallet ID, this endpoint will fail.
For a complete list of parameters along, their types, and endpoint response codes please see the API Reference:
https://docs.taurushq.com/protect-capital/reference/walletservice_createaddress
Prerequisites
Required Roles
- AccountCreator
- TPUser
To find out more about roles, please refer to the following page in the Taurus User Guides.
Call Example
You can find a basic example in cURL below.
Please note that you will need to update the BASEURL and the APITOKEN for the command to function.
This piece of code sends a POST request to https://your-protect-instance.example.com/api/rest/v1/addresses with the JSON string in the request body.
Call Result
A successful response for the POST call to create an address might look like this:
In this example, Taurus-PROTECT has created a new Address under the specified wallet, and has assigned it a unique ID of “726409”. Taurus-PROTECT responds with a JSON object containing the address details, including the newly created Address id.
For more information about this endpoint, see the API Reference here..