Neucron
Search
K
Comment on page

Addresses

Get Wallet Addresses

The /wallet/address endpoint allows you to retrieve the addresses associated with a wallet. This endpoint is protected with Bearer Token authentication and accepts a GET request with the following parameters:
  • walletID: A query parameter specifying the ID of the wallet for which you want to retrieve addresses.
  • X-Neucron-App-ID: A header parameter for specifying the app ID.
  • X-Neucron-Key-ID: A header parameter for specifying the key ID.
  • X-Neucron-Key-Secret: A header parameter for specifying the key secret.
  • X-Neucron-User-ID: A header parameter for specifying the user ID.

Endpoint Details

  • URL: https://dev.neucron.io/wallet/address
  • Method: GET
  • Consumes: application/json
  • Produces: application/json
  • Tags: Wallet
  • Summary: Get Wallet Addresses

Request Example

Here's an example CURL request to retrieve the addresses associated with a specific wallet:
curl -X 'GET' \
'https://dev.neucron.io/wallet/address?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
Replace <Wallet_ID> with the ID of the wallet for which you want to retrieve addresses, and <Your_Bearer_Token> with your actual Bearer Token.

Response

The API responds with a JSON object containing an array of addresses associated with the specified wallet. Here's the response structure:
{
"data": {
"addresses": ["address1", "address2", ...]
},
"status_code": "integer"
}
  • data.addresses: An array of strings representing the addresses associated with the wallet.
  • status_code: An integer representing the HTTP status code.

Response Codes

  • 200: OK - The addresses were successfully retrieved.
  • 400: Bad Request - If there's an issue with the request, you'll receive an error response.
  • 500: Internal Server Error - If there's a problem with the server, you'll receive an error response.

Curl Example

Here's the CURL example to retrieve the addresses associated with a specific wallet (replace <Wallet_ID> and <Your_Bearer_Token> as mentioned above):
curl -X 'GET' \
'https://dev.neucron.io/wallet/address?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
This CURL request will retrieve the addresses associated with the specified wallet and return them in the response.
get
https://dev.neucron.io
/wallet/address
fetch all addresses by walletId

Get Wallet Address by Path

The /wallet/address/create endpoint allows you to generate a new address for a wallet based on a specific derivation path. This endpoint is protected with Bearer Token authentication and accepts a GET request with the following parameters:
  • walletID: A query parameter specifying the ID of the wallet for which you want to generate a new address.
  • path: A query parameter specifying the derivation path for the new address. This parameter is required.
  • X-Neucron-App-ID: A header parameter for specifying the app ID.
  • X-Neucron-Key-ID: A header parameter for specifying the key ID.
  • X-Neucron-Key-Secret: A header parameter for specifying the key secret.
  • X-Neucron-User-ID: A header parameter for specifying the user ID.

Endpoint Details

  • URL: https://dev.neucron.io/wallet/address/create
  • Method: GET
  • Consumes: application/json
  • Produces: application/json
  • Tags: Wallet
  • Summary: Get Address
  • Required: path (Derivation Path)

Request Example

Here's an example CURL request to generate a new address for a specific wallet based on a derivation path:
curl -X 'GET' \
'https://dev.neucron.io/wallet/address/create?walletID=<Wallet_ID>&path=<Derivation_Path>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
Replace <Wallet_ID> with the ID of the wallet for which you want to generate a new address, <Derivation_Path> with the desired derivation path, and <Your_Bearer_Token> with your actual Bearer Token.

Response

The API responds with a JSON object containing an array of newly generated addresses based on the specified derivation path. Here's the response structure:
{
"data": {
"addresses": ["address1", "address2", ...]
},
"status_code": "integer"
}
  • data.addresses: An array of strings representing the newly generated addresses.
  • status_code: An integer representing the HTTP status code.

Response Codes

  • 200: OK - The new addresses were successfully generated.
  • 400: Bad Request - If there's an issue with the request or the path parameter is missing, you'll receive an error response.
  • 500: Internal Server Error - If there's a problem with the server, you'll receive an error response.

Curl Example

Here's the CURL example to generate new addresses for a specific wallet based on a derivation path (replace <Wallet_ID>, <Derivation_Path>, and <Your_Bearer_Token> as mentioned above):
curl -X 'GET' \
'https://dev.neucron.io/wallet/address/create?walletID=<Wallet_ID>&path=<Derivation_Path>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
This CURL request will generate new addresses based on the specified derivation path and return them in the response.
get
https://dev.neucron.io
/wallet/address/create
fetch address

Get Wallet Keys

The /wallet/keys endpoint allows you to retrieve the keys associated with a wallet. This endpoint is protected with Bearer Token authentication and accepts a GET request with the following parameters:
  • walletID: A query parameter specifying the ID of the wallet for which you want to retrieve keys.
  • X-Neucron-App-ID: A header parameter for specifying the app ID.
  • X-Neucron-Key-ID: A header parameter for specifying the key ID.
  • X-Neucron-Key-Secret: A header parameter for specifying the key secret.
  • X-Neucron-User-ID: A header parameter for specifying the user ID.

Endpoint Details

  • URL: https://dev.neucron.io/wallet/keys
  • Method: GET
  • Consumes: application/json
  • Produces: application/json
  • Tags: Wallet
  • Summary: Get Keys

Request Example

Here's an example CURL request to retrieve the keys associated with a specific wallet:
curl -X 'GET' \
'https://dev.neucron.io/wallet/keys?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
Replace <Wallet_ID> with the ID of the wallet for which you want to retrieve keys, and <Your_Bearer_Token> with your actual Bearer Token.

Response

The API responds with a JSON object containing an array of keys associated with the specified wallet. Here's the response structure:
{
"data": {
"keys": ["key1", "key2", ...]
},
"status_code": "integer"
}
  • data.keys: An array of strings representing the keys associated with the wallet.
  • status_code: An integer representing the HTTP status code.

Response Codes

  • 200: OK - The keys were successfully retrieved.
  • 400: Bad Request - If there's an issue with the request, you'll receive an error response.
  • 500: Internal Server Error - If there's a problem with the server, you'll receive an error response.

Curl Example

Here's the CURL example to retrieve the keys associated with a specific wallet (replace <Wallet_ID> and <Your_Bearer_Token> as mentioned above):
curl -X 'GET' \
'https://dev.neucron.io/wallet/keys?walletID=<Wallet_ID>' \
-H 'accept: application/json' \
-H 'Authorization: <Your_Bearer_Token>'
This CURL request will retrieve the keys associated with the specified wallet and return them in the response.
get
https://dev.neucron.io
/wallet/keys
Retrieve the keys associated with each wallet address