Venly API
Search…
Read contract
Endpoint that allows you to read contract functions
post
https://api.arkane.network
/api/contracts/read
Read a contract

Examples

Get Balance of

This example will get the balance of a certain NFT for a specific wallet
1
POST: https://api.arkane.network/api/contracts/read
Copied!

Request Body

1
{
2
"secretType": "MATIC",
3
"walletAddress": "0x0000000000000000000000000000000000000000",
4
"contractAddress": "0xE80F3baA739c18fd4eBf97716529a4b85BE464Dd",
5
"functionName": "balanceOf",
6
"inputs": [
7
{
8
"type": "address",
9
"value": "0x427d0addaa77d8bb871dbea3458dea4b5198730c"
10
},
11
{
12
"type": "uint256",
13
"value": "202"
14
}
15
],
16
"outputs": [
17
{
18
"type": "uint256"
19
}
20
]
21
}
Copied!

Response

1
{
2
"success": true,
3
"result": [
4
{
5
"type": "uint256",
6
"value": 1
7
}
8
]
9
}
Copied!

Get Mint Number

This example will get the mint number for a specific NFT.
1
POST : https://api.arkane.network/api/contracts/read
Copied!

Request Body

1
{
2
"secretType": "MATIC",
3
"walletAddress": "0x0000000000000000000000000000000000000000",
4
"contractAddress": "0xf86013ac3a23d26efb3337b4d63de6e6ec2a9861",
5
"functionName": "mintNumber",
6
"inputs": [
7
{
8
"type": "uint256",
9
"value": "51"
10
}
11
],
12
"outputs": [
13
{
14
"type": "uint256"
15
}
16
]
17
}
Copied!

Response

1
{
2
"success": true,
3
"result": [
4
{
5
"type": "uint256",
6
"value": 2
7
}
8
]
9
}
Copied!

Get Contract URI

This example will fetch the contract URI, which contains the metadata, for a specific contract.
1
POST : https://api.arkane.network/api/contracts/read
Copied!

Request Body

1
{
2
"secretType": "MATIC",
3
"walletAddress": "0x0000000000000000000000000000000000000000",
4
"contractAddress": "0x8c53de6a889cf0a3151168c3e84263c982d09a2f",
5
"functionName": "contractURI",
6
"outputs": [
7
{
8
"type": "string"
9
}
10
]
11
}
Copied!

Response

1
{
2
"success": true,
3
"result": [
4
{
5
"type": "string",
6
"value": "https://metadata.arkane.network/api/apps/0ed3a778-4f11-4cdf-b3cc-45f3225a9065/contracts/76/metadata"
7
}
8
]
9
}
Copied!
Last modified 1mo ago