Pool
Get all pools
Example Curl request
$ curl 'https://api.thorblock.io/api/pools?wallet=0xa36CCe37376CAf7ecbD9eEda1F477F0A62246e3a&wallet=0x8a7Fe807c983c71dbaD4451e7C2c469e3e7E6b01' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Length: 1901
Content-Type: application/json;charset=UTF-8
[ {
"address" : "0xbcae8341c929d2d98eed711577e017f96bc8129a",
"admin" : "0x00000000000000000000000000000000000Ad310",
"maxCap" : 1000000000000000000000,
"minPersonalCap" : 50000000000000000000,
"destinationAddress" : "0x7f547f2f6b90f52011b2366f4febd558ddd56db4",
"feePerMille" : 5,
"feeAddress" : "0x000000000000000000000000000000000000de71",
"destinationAddressLocked" : false,
"currentState" : "OPEN",
"totalContributed" : 100000000000000000000,
"totalRemaining" : 900000000000000000000,
"tokenAddress" : null,
"whitelisted" : null,
"fundingTokenAddress" : "0x0000000000000000000000000000000000000000"
}, {
"address" : "0xbcae8341c929d2d98eed711577e017f96bc8129a",
"admin" : "0x00000000000000000000000000000000000Ad310",
"maxCap" : 1000000000000000000000,
"minPersonalCap" : 50000000000000000000,
"destinationAddress" : "0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42",
"feePerMille" : 5,
"feeAddress" : "0x000000000000000000000000000000000000de71",
"destinationAddressLocked" : false,
"currentState" : "OPEN",
"totalContributed" : 100000000000000000000,
"totalRemaining" : 900000000000000000000,
"tokenAddress" : null,
"whitelisted" : null,
"fundingTokenAddress" : "0x0000000000000000000000000000000000000000"
}, {
"address" : "0xbcae8341c929d2d98eed711577e017f96bc8129a",
"admin" : "0x00000000000000000000000000000000000Ad310",
"maxCap" : 1000000000000000000000,
"minPersonalCap" : 50000000000000000000,
"destinationAddress" : "0xC7E99C24Fe6FBcBD136caec13836656B3552E166",
"feePerMille" : 5,
"feeAddress" : "0x000000000000000000000000000000000000de71",
"destinationAddressLocked" : false,
"currentState" : "OPEN",
"totalContributed" : 100000000000000000000,
"totalRemaining" : 900000000000000000000,
"tokenAddress" : null,
"whitelisted" : null,
"fundingTokenAddress" : "0x0000000000000000000000000000000000000000"
} ]
Response fields
Path | Type | Description |
---|---|---|
|
|
An array of pools |
Get contributions
Returns all pools you contributed to
Example Curl request
$ curl 'https://api.thorblock.io/api/contributions?wallet=0xa36CCe37376CAf7ecbD9eEda1F477F0A62246e3a&wallet=0x8a7Fe807c983c71dbaD4451e7C2c469e3e7E6b01' -i -X GET
Example response
HTTP/1.1 200 OK
Content-Length: 509
Content-Type: application/json;charset=UTF-8
[ {
"pool" : "0x7f547f2f6b90f52011b2366f4febd558ddd56db4",
"amount" : 100000000000000000000,
"contributionAddress" : "0xa36CCe37376CAf7ecbD9eEda1F477F0A62246e3a"
}, {
"pool" : "0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42",
"amount" : 200000000000000000000,
"contributionAddress" : "0xa36CCe37376CAf7ecbD9eEda1F477F0A62246e3a"
}, {
"pool" : "0xC7E99C24Fe6FBcBD136caec13836656B3552E166",
"amount" : 300000000000000000000,
"contributionAddress" : "0x8a7Fe807c983c71dbaD4451e7C2c469e3e7E6b01"
} ]
Response fields
Path | Type | Description |
---|---|---|
|
|
An array of pools the user contributed to |
|
|
The pool the user has contributed to |
|
|
The amount the user has contributed (in WEI) |
|
|
From which address the contribution was made |
Get a specific pool
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42' -i -X GET
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Example response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 631
{
"address" : "0xbcae8341c929d2d98eed711577e017f96bc8129a",
"admin" : "0x00000000000000000000000000000000000Ad310",
"maxCap" : 1000000000000000000000,
"minPersonalCap" : 50000000000000000000,
"destinationAddress" : "0x7f547f2f6b90f52011b2366f4febd558ddd56db4",
"feePerMille" : 5,
"feeAddress" : "0x000000000000000000000000000000000000de71",
"destinationAddressLocked" : false,
"currentState" : "OPEN",
"totalContributed" : 100000000000000000000,
"totalRemaining" : 900000000000000000000,
"tokenAddress" : null,
"whitelisted" : null,
"fundingTokenAddress" : "0x0000000000000000000000000000000000000000"
}
Response fields
Path | Type | Description |
---|---|---|
|
|
the address of the pool |
|
|
the address of the admin |
|
|
the maximum cap for this pool (in WEI) |
|
|
the minimum personal cap to be allowed in this pool (in WEI) |
|
|
the destination address |
|
|
the fee per mille (ex. 1 PERMILLE = 0,1%) |
|
|
the address the fee will be send to |
|
|
whether the destination address is locked or not |
|
|
the state of this pool. This can be one of the following: OPEN, CANCELLED, TRANSFERRED, REFUNDED, TOKENS_TRANSFERRED, REFUNDED_AND_TOKENS_TRANSFERRED |
|
|
the total contribution amount (in WEI) |
|
|
the total contribution amount remaining (in WEI) |
|
|
The token address |
|
|
Indicating the pool has a whitelist or not |
|
|
The (funding) token used by the pool, 0x0 if VET |
Response body
{
"address" : "0xbcae8341c929d2d98eed711577e017f96bc8129a",
"admin" : "0x00000000000000000000000000000000000Ad310",
"maxCap" : 1000000000000000000000,
"minPersonalCap" : 50000000000000000000,
"destinationAddress" : "0x7f547f2f6b90f52011b2366f4febd558ddd56db4",
"feePerMille" : 5,
"feeAddress" : "0x000000000000000000000000000000000000de71",
"destinationAddressLocked" : false,
"currentState" : "OPEN",
"totalContributed" : 100000000000000000000,
"totalRemaining" : 900000000000000000000,
"tokenAddress" : null,
"whitelisted" : null,
"fundingTokenAddress" : "0x0000000000000000000000000000000000000000"
}
Create a new pool
Example Curl request
$ curl 'https://api.thorblock.io/api/pools' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"maxCap" : 1000000000000000000000,
"minPersonalCap" : 50000000000000000000,
"destinationAddress" : "0x7f547f2f6b90f52011b2366f4febd558ddd56db4",
"destinationAddressLocked" : false,
"whitelisted" : null,
"uid" : "ba9fa07c-2606-47c6-bf1a-319381d9a539",
"fundingTokenAddress" : "0x0000000000000000000000000000000000000000"
}'
Request fields
Path | Type | Description |
---|---|---|
|
|
The maxcap of the pool (VET in WEI) |
|
|
The minimum a person can contribute to the pool (VET in WEI) |
|
|
The destination address where the funds will (ex. the ICO contract) |
|
|
Boolean indicating destination address can be changed or not after creation |
|
|
True if pool has a whitelist, false otherwise |
|
|
The UID from SafeID |
|
|
(Optional) The contract address of the token that is used inside the pool. Leave blank (or 0x0) for VET |
Example response
HTTP/1.1 200 OK
Content-Length: 428
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x6605598CE7E2E3E160c6D8aD5EEa7A562F7ab0af",
"amount" : "0",
"data" : "0x8a2640360000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000007f547f2f6b90f52011b2366f4febd558ddd56db40000000000000000000000000000000000000000000000000000000000000000"
} ],
"gasPriceCoef" : "0",
"gas" : 350000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x6605598CE7E2E3E160c6D8aD5EEa7A562F7ab0af",
"amount" : "0",
"data" : "0x8a2640360000000000000000000000000000000000000000000000008ac7230489e8000000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000007f547f2f6b90f52011b2366f4febd558ddd56db40000000000000000000000000000000000000000000000000000000000000000"
} ],
"gasPriceCoef" : "0",
"gas" : 350000
}
Cancel a pool
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/poolAddress/cancel' -i -X POST \
-H 'Content-Type: application/json'
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Example response
HTTP/1.1 200 OK
Content-Length: 171
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0xea8a1af0"
} ],
"gasPriceCoef" : "0",
"gas" : 40000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0xea8a1af0"
} ],
"gasPriceCoef" : "0",
"gas" : 40000
}
Contribute to a pool
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/contributions' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"amount" : 100,
"contributor" : "0x7f547f2f6b90f52011b2366f4febd558ddd56db4",
"uid" : "ba9fa07c-2606-47c6-bf1a-319381d9a539"
}'
Request fields
Path | Type | Description |
---|---|---|
|
|
The amount to contribute to the pool (in VET) |
|
|
The contributor (the address of the person that will be recorded in the pool with the contribution) |
|
|
The UID from SafeID |
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Example response
HTTP/1.1 200 OK
Content-Length: 238
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "100",
"data" : "0x73e888fd0000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "100",
"data" : "0x73e888fd0000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Revoke contributions from a pool
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/contributions?uid=ba9fa07c-2606-47c6-bf1a-319381d9a539' -i -X DELETE \
-H 'Content-Type: application/json'
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Example response
HTTP/1.1 200 OK
Content-Length: 171
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0xb48309da"
} ],
"gasPriceCoef" : "0",
"gas" : 30000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0xb48309da"
} ],
"gasPriceCoef" : "0",
"gas" : 30000
}
Set destination adress
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/destinationaddress' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"address" : "0x7f547f2f6b90f52011b2366f4febd558ddd56db4"
}'
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Request fields
Path | Type | Description |
---|---|---|
|
|
The new destination address |
Example response
HTTP/1.1 200 OK
Content-Length: 236
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0x7fa4cacb0000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0x7fa4cacb0000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Set token adress
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/tokenaddress' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"address" : "0x7f547f2f6b90f52011b2366f4febd558ddd56db4"
}'
Request fields
Path | Type | Description |
---|---|---|
|
|
The new token address |
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Example response
HTTP/1.1 200 OK
Content-Length: 236
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0x7fa4cacb0000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0x7fa4cacb0000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Transfer pool funds
Will transfer all the funds of the pool to the destination address (ex. the crowdsale address).
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/transferfunds' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"data" : "0x7134cc7600000000000000000000000000000000000000000000000000000000000000037eeee5471896a43026452b46182020e90b37a20af68662b326c3d8852d312bb7a08b3cbadb934ae1b036147e240a1bab0f944876551e8c153fae26b6bd8bf46d"
}'
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Request fields
Path | Type | Description |
---|---|---|
|
|
(Optional) Hex value of the data to be included in the transfer to the destination address |
Example response
HTTP/1.1 200 OK
Content-Length: 171
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0xb48309da"
} ],
"gasPriceCoef" : "0",
"gas" : 30000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0xb48309da"
} ],
"gasPriceCoef" : "0",
"gas" : 30000
}
Distribute pool funds
When there are funds available for the contributors, call this endpoint. This will divide the funds to all contributors (who still have to call withDrawFunds to perform the actual withdraw)
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/poolAddress/distributefunds' -i -X POST \
-H 'Content-Type: application/json'
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Example response
HTTP/1.1 200 OK
Content-Length: 173
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0x3a6a4d2e"
} ],
"gasPriceCoef" : "0",
"gas" : 1500000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0x3a6a4d2e"
} ],
"gasPriceCoef" : "0",
"gas" : 1500000
}
Withdraw funds
Allows contributors to withdraw tokens / vet from the contract
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/withdraw' -i -X POST
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Example response
HTTP/1.1 200 OK
Content-Length: 238
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "100",
"data" : "0x73e888fd0000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "100",
"data" : "0x73e888fd0000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Withdrawal balance
See the amount of VET/tokens you can withdraw
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/contributions/0x7f547f2f6b90f52011b2366f4febd558ddd56db4/withdrawalbalance' -i -X GET
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
|
the contributor to show the withdrawal balance for |
Example response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 91
{
"tokensToWithdraw" : 100000000000000000000,
"weiToWithdraw" : 100000000000000000000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
Amount of withdrawable tokens (in WEI) |
|
|
Amount of VET to withdraw (in WEI) |
Response body
{
"tokensToWithdraw" : 100000000000000000000,
"weiToWithdraw" : 100000000000000000000
}
Update whitelist
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/whitelist' -i -X POST \
-H 'Content-Type: application/json' \
-d '{
"contributors" : [ "0x7f547f2f6b90f52011b2366f4febd558ddd56db4" ],
"allowed" : true
}'
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Request fields
Path | Type | Description |
---|---|---|
|
|
List of contributors to update in the whitelist |
|
|
True to add to whitelist, false to remove |
Example response
HTTP/1.1 200 OK
Content-Length: 428
Content-Type: application/json;charset=UTF-8
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0x6560f8db0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The amount of gas to be used |
|
|
The gasprice coef to be used |
|
|
The different clauses included in the transaction |
|
|
The target address of the transaction |
|
|
The vet amount (not in WEI!) included in the transaction |
|
|
The data for the transaction |
Response body
{
"clauses" : [ {
"to" : "0x7b0eb37e542f8d18d0e13b1144f5309d947300d9",
"amount" : "0",
"data" : "0x6560f8db0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000002cfc414feaca3f073768e61cdfcaaad75db2b773"
} ],
"gasPriceCoef" : "0",
"gas" : 100000
}
Whitelist count
Returns the number of contributors in the whitelist
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/whitelist' -i -X GET
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
Example response
HTTP/1.1 200 OK
Content-Length: 18
Content-Type: application/json;charset=UTF-8
{
"result" : 1
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The number of contributors in the whitelist |
Response body
{
"result" : 1
}
Whitelist check
Example Curl request
$ curl 'https://api.thorblock.io/api/pools/0x0fcd82A10Ab3ED65f11336a1e9Fa47eb58A01C42/whitelist/0x7f547f2f6b90f52011b2366f4febd558ddd56db4' -i -X GET
Path parameters
Parameter | Description |
---|---|
|
the address of the pool |
|
the address of the contributor to check if whitelisted or not |
Example response
HTTP/1.1 200 OK
Content-Length: 21
Content-Type: application/json;charset=UTF-8
{
"result" : true
}
Response fields
Path | Type | Description |
---|---|---|
|
|
True if whitelisted, false otherwise |
Response body
{
"result" : true
}
VIP180
Info
Example Curl request
$ curl 'https://api.thorblock.io/api/tokens/0x9c6e62B3334294D70c8e410941f52D482557955B' -i -X GET
Path parameters
Parameter | Description |
---|---|
|
the contract address of the token |
Example response
HTTP/1.1 200 OK
Content-Length: 66
Content-Type: application/json;charset=UTF-8
{
"symbol" : "SHA",
"name" : "Safe Haven",
"decimals" : 18
}
Response fields
Path | Type | Description |
---|---|---|
|
|
The symbol used by the token |
|
|
The name used by the token |
|
|
The number of decimals used by the token |
Response body
{
"symbol" : "SHA",
"name" : "Safe Haven",
"decimals" : 18
}