Viction DA RPC API

Viction DA, the interconnecting data layer for Web3, breaking down communication barriers between blockchain platforms.

You can make JSON RPC calls to Viction via those following URLs:

DA-Testnet: https://da-testnet.viction.xyz

DA-Mainnet: https://da.viction.xyz

Postman collection

Commit data

POST /commit

Commit data to the DA Layer & returns Commitment for each given Blob

RequestBody: The argument is byte array

{
    "jsonrpc": "2.0",
    "id": 128,
    "method": "commit",
    "params": [
        [
            [
                104,
                101,
                108,
                108,
                111
            ]
        ],
        "namespace"
    ]
}

Response

Success response should return an array of commitments of the byte array

Get Blob

GET /get

Return Blob for each given ID

RequestBody

Response

!!! In case there is no data in storage(means nothing was submitted before) it returns empty bytes array

Get Proof

GET /get_proofs

Return Proofs for each given ID

RequestBody

Response

Submit

POST /submit

Submit data to Data layer & returns tuple of ID and Commitment for each given Blob

RequestBody

Response

Validate

POST /validate

Request body 1st params argument is a "hello" string Id and Commitment("${Id}-{Commitment}")

Kindly view Submit example 2nd onw is a data with corrupted proof byte array

RequestBody

ERROR RESPONSE In case the request has invalid params

Response

Success response should return true and false

!!! In case there is no data in storage(means nothing was submitted before) it returns false validation result

Last updated