Interact with STRATO using API through Swagger UI

After running the STRATO, the Swagger UI links for both Bloc and STRATO APIs can be found in the top-right corner of your STRATO Management Dashboard

Create users

  • Navigate to "Post /users/{user}"

    User1

  • Fill out the required fields with faucet as true

    User2

  • After execution, the response is the user address

    User3

List users

  • Navigate to "Get /users/{user}" and search for any user

    User4

  • After execution, the response is the list of all current users with that username

    User5

Create contract

  • Navigate to "Post /users/{user}/{address}/contract"

    Contract 1

  • Build Sample Contract with previous user account and address

    Contract 2

  • After execution, the response is the contract address

    Contract 3

Call a method on a contract

  • Navigate "Post /users/{user}/{userAddress}/contract/{contractName}/{contractAddress}/call"

    Call 1

  • Fill in method call and contract address

    Call 2

  • After execution, the response is the contract response

    Call 3

Send ether (make transaction)

  • Navigate to "Post /users/{user}/{address}/send"

    Send 1

  • Fill in your user address and in the body, fill out target address

    Send 2

  • After execution, the response is the transaction receipt

    Send 3