Bridgechains

List all bridgechains

Returns a list of all registered bridgechains on the network.

GET /api/bridgechains

Example

curl https://api.ark.io/api/bridgechains

Query Parameters

Name

Type

Description

Required

page

int

The number of the page that will be returned.

false

limit

int

The number of resources per page.

false

orderBy

string

Type by which it orders bridgechains.

false

publicKey

string

The publicKey of a transaction which submitted the bridgechain.

false

isResigned

boolean

If bridgechain is resigned or not.

false

Response

{
"meta": {
"count": 43,
"pageCount": 1,
"totalCount": 43,
"next": null,
"previous": null,
"self": "/bridgechains?page=1&limit=100",
"first": "/bridgechains?page=1&limit=100",
"last": "/bridgechains?page=1&limit=100"
},
"data": [
{
"publicKey": "02e7e9b33d19e5aa7ad092e8cdb5c973b44e2c761840c64a1abbe5571bb317d464",
"address": "DEHyKHdtzHqTghfpwaBcvTzLpgPP5AAUgE",
"name": "bchain-0.04206259029720094",
"seedNodes": [
"1.1.1.1",
"1.2.3.4"
],
"genesisHash": "a6f4b8ceb2299efba73f732dca52d871ce42c31af22eca1e7f8f16083daac6f6",
"bridgechainRepository": "https://github.com/ArkEcosystem/core",
"ports": {
"@arkecosystem/core-api": 4003
},
"isResigned": false
},
{
"publicKey": "03782a5c77892798195b5c1b54133c7139debc63551523ee37e5b4d0be6a7e7fe4",
"address": "D5xRcwzEGSN83nyuGN74Sw8f353vDmm2tt",
"name": "bchain-0.04391823538085293-620022860717",
"seedNodes": [
"1.1.1.1",
"1.2.3.4"
],
"genesisHash": "de921093b007df470f22c77257ed6c39bf7887d7ba28bafbde71e124e5125b67",
"bridgechainRepository": "https://github.com/ArkEcosystem/core",
"ports": {
"@arkecosystem/core-api": 4003
},
"isResigned": false
},
...
]
}

Return bridgechain by genesis hash

GET /api/bridgechains/{genesisHash}

Example

curl https://api.ark.io/api/bridgechains/2a44f340d76ffc3df204c5f38cd355b7496c9065a1ade2ef92071436bd72e867

Path parameters

Name

Type

Description

Required

genesisHash

string

...

true

Response

{
"data": {
"publicKey": "021ecb763a2589f189fa66df754d4dc27aeb1ae6a23d3e88e536beb8f57852ef5c",
"address": "DN7NVtgTdvdrD8BdLSML4qN6BXjFkATV9L",
"name": "mainnet",
"seedNodes": [
"1.1.1.1"
],
"genesisHash": "2a44f340d76ffc3df204c5f38cd355b7496c9065a1ade2ef92071436bd72e867",
"bridgechainRepository": "http://github.com/arkecosystem/core.git",
"ports": {
"@arkecosystem/core-api": 4003
},
"isResigned": false
}
}

Search bridgechains

POST /bridgechains/search

Query Parameters

Name

Type

Description

Required

page

int

The number of the page that will be returned.

false

limit

int

The number of resources per page.

false

orderBy

string

Type by which it orders bridgechains.

false

Body Parameters

Name

Type

Description

Required

address

string

...

false

publicKey

string

...

false

bridgechainRepository

string

...

false

genesisHash

string

...

false

name

string

...

false

seedNodes

array

...

false

isResigned

boolean

...

false

Response

{
"meta": {
"count": 1,
"pageCount": 1,
"totalCount": 1,
"next": null,
"previous": null,
"self": "/bridgechains/search?page=1&limit=100",
"first": "/bridgechains/search?page=1&limit=100",
"last": "/bridgechains/search?page=1&limit=100"
},
"data": [
{
"publicKey": "028c430df44c120ed342e37da5ea8992eac6755c43fe6a6a870b02ae81a943ba75",
"address": "DPeqoTgBbRhyuEJtMnhqhSAeK32ymMNvjd",
"name": "bchain-0.2546019873538763",
"seedNodes": [
"1.1.1.1",
"1.2.3.4"
],
"genesisHash": "8af717bdf0a5ab94ef0272ba0e83d9ae8dce86ce5a9614ab1cacd9b417214ed3",
"bridgechainRepository": "https://github.com/ArkEcosystem/core",
"ports": {
"@arkecosystem/core-api": 4003
},
"isResigned": false
}
]
}