Call a read function on a deployed contract

POST {{baseUrl}}/contract_interactions/base_asset_id/:assetId/contract_address/:contractAddress/functions/read

Call a read function on a deployed contract by blockchain native asset id and contract address

Request Body

{"abiFunction"=>{"stateMutability"=>"pure", "type"=>"<string>", "inputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "value"=>"<string>", "functionValue"=>{"inputs"=>[{"value"=>"<Circular reference to #/components/schemas/ParameterWithValue detected>"}, {"value"=>"<Circular reference to #/components/schemas/ParameterWithValue detected>"}], "name"=>"<string>"}}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "value"=>"<string>", "functionValue"=>{"inputs"=>[{"value"=>"<Circular reference to #/components/schemas/ParameterWithValue detected>"}, {"value"=>"<Circular reference to #/components/schemas/ParameterWithValue detected>"}], "name"=>"<string>"}}], "outputs"=>[{"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}, {"name"=>"<string>", "type"=>"<string>", "description"=>"<string>", "internalType"=>"<string>", "components"=>[{"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}, {"value"=>"<Circular reference to #/components/schemas/Parameter detected>"}]}], "name"=>"<string>", "description"=>"<string>"}}

HEADERS

KeyDatatypeRequiredDescription
Idempotency-KeystringA unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours.
Content-Typestring
Acceptstring

RESPONSES

status: OK

[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;functionValue&quot;:{&quot;inputs&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/ParameterWithValue detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/ParameterWithValue detected\u003e&quot;}],&quot;name&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]},{&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;\u003cstring\u003e&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;internalType&quot;:&quot;\u003cstring\u003e&quot;,&quot;components&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/Parameter detected\u003e&quot;}]}],&quot;value&quot;:&quot;\u003cstring\u003e&quot;,&quot;functionValue&quot;:{&quot;inputs&quot;:[{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/ParameterWithValue detected\u003e&quot;},{&quot;value&quot;:&quot;\u003cCircular reference to #/components/schemas/ParameterWithValue detected\u003e&quot;}],&quot;name&quot;:&quot;\u003cstring\u003e&quot;}}]