Bloc Gateway

Gateway Api

BLOC-Gateway Wallet is a HTTP server which provides interface for BLOC.

 

The BLOC gateway is made for the most part for developers and for those who want to build a third party application that use BLOC as a payment gateway. 

BLOC gateway is responsible for transfer/create/syncronizing wallet and transactions between platforms :

  • Interaction with the blockchain, e.g. blocks relaying, getting informations about the wallet
  • Informations about a transaction made with the API
  • Synchronize and grow blockchain

Various commands are made available by the API described on this page.

BLOC Gateway HTTP

HTTP API

BLOC Gateway is a HTTP server which provides interface for BLOC operations and address management. Bloc Gateway allows you to transfer funds from an address to another, generate an addresses via bloc-service RPC Wallet and saves all data into a single place.


Endpoint : https://bloc-gateway.com/api



{API}
BLOC - GATEWAY

Bloc API Gateway Integration

Bloc Api Gateway

Make sure you follow this instructions before getting started with BLOC.


BLOC integration process may differ from other cryptocurrencies:

The API can be implemented in any programming language that can support HTTP Requests.

 

Please click on the service to see how does it work and how to implement BLOC-Gateway into your application and/or website.



Implementation Notes

Create a new address


There are no inputs for this Function


There are no outputs for this Function


TRY IT OUT




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes


Input Parameters 1 inputs
Only display the first 3 inputs. Click for more inputs.

Argument Mandatory Description Format Example
address No string

There are no outputs for this Function


TRY IT OUT

Example :




													


													


													


													

Expected Output

Get details of an address
Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes


Input Parameters 1 inputs
Only display the first 3 inputs. Click for more inputs.

Argument Mandatory Description Format Example
address Yes string

There are no outputs for this Function


TRY IT OUT

Example :




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes


There are no inputs for this Function


There are no outputs for this Function


TRY IT OUT




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes


Input Parameters 2 inputs
Only display the first 3 inputs. Click for more inputs.

Argument Mandatory Description Format Example
address Yes string
blockIndex Yes integer

There are no outputs for this Function


TRY IT OUT

Example :

Example :




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes

Get the public and secret spend key of an address.


Input Parameters 1 inputs
Only display the first 3 inputs. Click for more inputs.

Argument Mandatory Description Format Example
address Yes string

There are no outputs for this Function


TRY IT OUT

Example :




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes

Create an integrated address with an address and payment ID.


Input Parameters 2 inputs
Only display the first 3 inputs. Click for more inputs.

Argument Mandatory Description Format Example
address Yes string
paymentID Yes string

There are no outputs for this Function


TRY IT OUT

Example :

Example :




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes

Get all integrated addresses belonging to an address.


Input Parameters 1 inputs
Only display the first 3 inputs. Click for more inputs.

Argument Mandatory Description Format Example
address Yes integer

There are no outputs for this Function


TRY IT OUT

Example :




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes

Create a new transaction.


Input Parameters 6 inputs
Only display the first 3 inputs. Click for more inputs.

Argument Mandatory Description Format Example
from Yes string
to Yes string
amount Yes integer
fee Yes integer
paymentID No string
extra No string

There are no outputs for this Function


TRY IT OUT

Example :

Example :

Example :

Example :

Example :

Example :




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes

Calculate the fee in TRTL for a wallet container.


Input Parameters 1 inputs
Only display the first 3 inputs. Click for more inputs.

Argument Mandatory Description Format Example
amount Yes The amount of what the fee should be calculated integer

There are no outputs for this Function


TRY IT OUT

Example :




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes

Get an transaction by hash created with Bloc-Gateway Service.


Input Parameters 1 inputs
Only display the first 3 inputs. Click for more inputs.

Argument Mandatory Description Format Example
transactionHash Yes Bloc Transaction Hash string

There are no outputs for this Function


TRY IT OUT

Example :




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes

Get wallet container info and health check.


There are no inputs for this Function


There are no outputs for this Function


TRY IT OUT




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable

Implementation Notes

Get Bloc infrastructure health check.


There are no inputs for this Function


There are no outputs for this Function


TRY IT OUT




													


													


													


													

Expected Output

Code Description
200 Ok
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
405 Invalid Input
412 Precondition Failed
429 Too Many Requests
500 Internal Server Error
503 Service Unavailable