1. Home
  2. Docs
  3. Enterprise Wallet
  4. Developer Documentation
  5. Addresses

Addresses

Addresses can be created against a wallet(which is explained in the wallet section). API’s related to address are explained below.

Enterprise Wallet API Endpoint.

Create Address

This endpoint creates a new address under the wallet provided.

Request Type and Endpoint

POST api/v1/wallets/:wallet_id/addresses

Request Query Parameters

ParameterTypeDescriptionRequired
wallet_idIntegerid of the wallet in which address has to be generatedYes
Request – Response Example
HTTP_METHOD=POST    
HOST=https://coinome.com/wallet  
URI=/api/v1/wallets/1331612684/addresses  
CONTENT_TYPE=application/json   
ACCESS_TOKEN=2c6bbada11f6c21738deea51c215ba664d6f6a4a707e4e5fdc10161ee2bb6abf  

curl -H "Content-Type: $CONTENT_TYPE" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-X $HTTP_METHOD "$HOST$URI"
{
    "data": {
        "id": "15",
        "type": "address",
        "attributes": {
            "address": "2N8nBNsoKuCTsFM8QvX1ua3PWp7k3rpoo8W",
            "wallet_id": 592071639,
            "coin": "btc",
            "path": "m/44/0/592071639/0/15",
            "created_at": "2019-03-28T13:08:20.395Z",
            "updated_at": "2019-03-28T13:08:20.608Z",
            "details": {
                "change": false
            }
        }
    }
}

Enterprise Wallet API Endpoint.

Show Address

This endpoint shows details of an address.

Request Type and Endpoint

GET /api/v1/wallets/:wallet_id/addresses/:id

Request Query Parameters

ParameterTypeDescriptionRequired
wallet_idIntegerid of the wallet in which address has to be generatedYes
idIntegerid of address to fetchYes
Request – Response Example
HTTP_METHOD=GET    
HOST=https://coinome.com/wallet  
URI=/api/v1/wallets/1331612684/addresses/2    
CONTENT_TYPE=application/json   
ACCESS_TOKEN=2c6bbada11f6c21738deea51c215ba664d6f6a4a707e4e5fdc10161ee2bb6abf  

curl -H "Content-Type: $CONTENT_TYPE" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-X $HTTP_METHOD "$HOST$URI"
{
    "data": {
        "id": "79",
        "type": "address",
        "attributes": {
            "id": 79,
            "wallet_id": 11,
            "address": "2N4mzKaPLDqVw5isPQRAY8kYg41Jw3KvLiJ",
            "client_wallet_path": "m/44/0/1/0/79",
            "service_provider_wallet_path": "m/44/0/1/0/79",
            "arbitrator_wallet_path": "m/44/0/1/0/79",
            "change": false
        }
    }
}

Enterprise Wallet API Endpoint.

Latest Address

This endpoint shows details of the latest address generated for that wallet.

Request Type and Endpoint

GET /api/v1/wallets/:wallet_id/addresses/latest

Request Query Parameters

ParameterTypeDescriptionRequired
wallet_idIntegerid of the wallet in which address has to be generatedYes
Request – Response Example
HTTP_METHOD=GET    
HOST=https://coinome.com/wallet  
URI=/api/v1/wallets/1331612684/addresses/latest   
CONTENT_TYPE=application/json   
ACCESS_TOKEN=2c6bbada11f6c21738deea51c215ba664d6f6a4a707e4e5fdc10161ee2bb6abf  

curl -H "Content-Type: $CONTENT_TYPE" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-X $HTTP_METHOD "$HOST$URI"
{
    "data": {
        "id": "15",
        "type": "address",
        "attributes": {
            "address": "2N8nBNsoKuCTsFM8QvX1ua3PWp7k3rpoo8W",
            "wallet_id": 592071639,
            "coin": "btc",
            "path": "m/44/0/592071639/0/15",
            "created_at": "2019-03-28T13:08:20.395Z",
            "updated_at": "2019-03-28T13:08:20.608Z",
            "details": {
                "change": false
            }
        }
    }
}

Enterprise Wallet API Endpoint.

List Address

This endpoint lists all addresses generated for that wallet.

Request Type and Endpoint

GET api/v1/wallets/:wallet_id/addresses

Request Query Parameters

ParameterTypeDescriptionRequired
wallet_idIntegerid of the wallet in which address has to be generatedYes
Request – Response Example
HTTP_METHOD=GET    
HOST=https://coinome.com/wallet  
URI=/api/v1/wallets/11/addresses  
CONTENT_TYPE=application/json   
ACCESS_TOKEN=2c6bbada11f6c21738deea51c215ba664d6f6a4a707e4e5fdc10161ee2bb6abf  

curl -H "Content-Type: $CONTENT_TYPE" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-X $HTTP_METHOD "$HOST$URI"
{
    "data": [{
        "id": "15",
        "type": "address",
        "attributes": {
            "address": "2N8nBNsoKuCTsFM8QvX1ua3PWp7k3rpoo8W",
            "wallet_id": 592071639,
            "coin": "btc",
            "path": "m/44/0/592071639/0/15",
            "created_at": "2019-03-28T13:08:20.395Z",
            "updated_at": "2019-03-28T13:08:20.608Z",
            "details": {
                "change": false
            }
        }
    }]
}