Address

Module endpoints

GET /addresses

GET https://api.slyk.io/addresses

Returns a paginated list of addresses.

Name

Type

Example

address

like

filter[address]=1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2

assetCode

= in nin

filter[assetCode]=in:BTC

walletId

= in nin

filter[walletId]=in:3cfd3110-0b19-4e57-a1db-60f7fd602ebc,69d6ecb8-5248-4602-8754-4572a0e2042c

The address filter performs a SQL query using the like operator.

GET /addresses/:address

GET https://api.slyk.io/addresses/:address

Returns the address details of the given address.

{
  "data": {
    "address": "1BvBMSEYstWetqTFn5Au4m4GFg7xJaNVN2",
    "assetCode": "btc",
    "createdAt": "2019-06-21T14:30:37.483Z",
    "customData": { 
        "name": "Main BTC address" 
      }
    "metadata": {},
    "updatedAt": "2019-06-21T14:30:37.483Z",
    "walletId": "f2519340-3aaf-4101-8e66-3324fb0da0eb"
  }
}

POST /addresses

POST https://api.slyk.io/addresses

Creates a new address.

Name

Type

Required

Description

address

string

true if provider is not given

Address identifier.

assetCode

string

true if provideris given

Asset code.

customData

object

false

Can store any additional information.

provider

string

true if address is not given

Address provider.

walletId

string

false

Identifier of the wallet the address will belong to. Format: uuid.

Last updated