Execute a read-only contract call (no gas).
curl --request POST \
--url https://sandbox.oumla.com/api/v1/contract-interactions/network/{networkId}/contract-address/{contractAddress}/functions/read \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-sdk-version: <x-sdk-version>' \
--data '
{
"abiFunction": {
"type": "function",
"inputs": [
{
"name": "<string>",
"type": "<string>",
"value": {},
"description": "<string>",
"internalType": "<string>",
"components": [
{
"name": "<string>",
"type": "<string>",
"description": "<string>",
"internalType": "<string>"
}
],
"indexed": true
}
],
"name": "<string>",
"stateMutability": "pure",
"outputs": [
{
"name": "<string>",
"type": "<string>",
"value": {},
"description": "<string>",
"internalType": "<string>",
"components": [
{
"name": "<string>",
"type": "<string>",
"description": "<string>",
"internalType": "<string>"
}
],
"indexed": true
}
],
"description": "<string>",
"anonymous": true
}
}
'{
"result": {
"data": {
"result": {},
"functionName": "<string>",
"contractAddress": "<string>",
"network": "<string>",
"encodedData": "<string>"
},
"success": true,
"status": 123
}
}API key for authentication
SDK version header
Show child attributes
Read call result
Show child attributes
Was this page helpful?
curl --request POST \
--url https://sandbox.oumla.com/api/v1/contract-interactions/network/{networkId}/contract-address/{contractAddress}/functions/read \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-sdk-version: <x-sdk-version>' \
--data '
{
"abiFunction": {
"type": "function",
"inputs": [
{
"name": "<string>",
"type": "<string>",
"value": {},
"description": "<string>",
"internalType": "<string>",
"components": [
{
"name": "<string>",
"type": "<string>",
"description": "<string>",
"internalType": "<string>"
}
],
"indexed": true
}
],
"name": "<string>",
"stateMutability": "pure",
"outputs": [
{
"name": "<string>",
"type": "<string>",
"value": {},
"description": "<string>",
"internalType": "<string>",
"components": [
{
"name": "<string>",
"type": "<string>",
"description": "<string>",
"internalType": "<string>"
}
],
"indexed": true
}
],
"description": "<string>",
"anonymous": true
}
}
'{
"result": {
"data": {
"result": {},
"functionName": "<string>",
"contractAddress": "<string>",
"network": "<string>",
"encodedData": "<string>"
},
"success": true,
"status": 123
}
}