Skip to main content
POST
/
networks
/
read-contract
Read Contract
curl --request POST \
  --url https://api.dfns.io/networks/read-contract \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "kind": "Evm",
  "network": "Adi",
  "contract": "<string>",
  "data": "<string>"
}'
{
  "kind": "Evm",
  "data": "<string>"
}

Authentication

✅ Organization User (CustomerEmployee)
✅ Delegated User (EndUser)
✅ Service Account

Required Permissions

No permission required.

Authorizations

Authorization
string
header
required

Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows

Body

application/json
kind
enum<string>
required
Available options:
Evm
network
enum<string>
required

Network used for the wallet.

Available options:
Adi,
AdiTestnet,
ArbitrumOne,
ArbitrumGoerli,
ArbitrumSepolia,
AvalancheC,
AvalancheCFuji,
Base,
BaseGoerli,
BaseSepolia,
Bob,
BobSepolia,
Bsc,
BscTestnet,
Berachain,
BerachainBArtio,
BerachainBepolia,
Celo,
CeloAlfajores,
Codex,
CodexSepolia,
Ethereum,
EthereumGoerli,
EthereumSepolia,
EthereumHolesky,
EthereumHoodi,
FantomOpera,
FantomTestnet,
FlareC,
FlareCCoston2,
Ink,
InkSepolia,
Optimism,
OptimismGoerli,
OptimismSepolia,
Plume,
PlumeSepolia,
Polygon,
PolygonAmoy,
PolygonMumbai,
Race,
RaceSepolia,
Sonic,
SonicTestnet,
Tsc,
TscTestnet1
contract
string
required

Address of the contract to call

data
string
required

Encoded hex string indicating which function in the smart contract to call with which parameters. For more information, see the encodeFunctionData ethersJS documentation

Response

200 - application/json

Success

kind
enum<string>
required
Available options:
Evm
data
string
required
I