Explore Plans
Mobile menu Close menu
1Shot API

Read From Chain

This query returns the data from one method on the blockchain.

Developer info

API endpoint slug
1shotapi.read
Runtime method
performQuery("1shotapi.read"}

Query fields

Contract method Dropdown list

Label
Choose which Contract Method you want to read from
Slug
contract_method_id
Required
true
Can have default value
false

Params Text input > Other

Label
Enter the parameters for the Contract Method
Helper text
This must be in JSON format. For example, a "balanceOf" method's parameters may look like this: {"account":"0x3e6a2f0CBA03d293B54c9fCF354948903007a798"}. This must be at least an object, {}
Slug
params
Required
true
Can have default value
true

Ingredients

Query result The results of the read query. These are in JSON format, and depend entirely on what the endpoint returns.

Slug
query_result
Filter code
_1shotapi.read.QueryResult
Type
String
Example
0x3e6a2f0CBA03d293B54c9fCF354948903007a798