Start a conversation

Step 4 - Making transactions and testing the adapter

After you've completed Step 3 - Configuring the Adapter for use, or when you are working with a pre-deployed Ethereum Adapter you can now call the API to make transactions..

Getting information

When the configuration is completed, on the user interface home screen you should be able to find all relevant details for the configuration. 

  • Status of the unchain Adapter/API (this is a separate process / Docker container). If it stays "reloading", probably your configuration is not correct, or unfinished. 
  • The API Endpoint is the endpoint that you may call from your business application. 
  • The API Key is the bearer token you configured to be used with that endpoint. Your header should be something like: "Authorization: bearer 1044dbec-8b33-48ed-a1d1-a3eb4ef67d5c"

Making test calls

When the Adapter is configured you'll be presented with a set of swagger-like forms. These are sample calls generated based on your contract (or rather, the ABI). 

Press POST to try it out! 

Congratulations! You have now successfully persisted something to (or requested from) the blockchain!

You may also make such API request from your own machine. For example with the curl command-line tool. Here is an example:

curl \
-H "Authorization: Bearer 8a67cc18-e474-46d6-adc5-28f1d257493e" \
-d '{
    "function": "order",
    "params": {
        "_model": 100

The adapter only accepts POST requests. Curl automatically makes POST requests when specifying a request body.

Choose files or drag and drop files
Was this article helpful?
  1. Support Engineer

  2. Posted
  3. Updated