Skip to content

IIP5: update API result examples#30

Open
Thoralf-M wants to merge 4 commits intomainfrom
move-view-function-results
Open

IIP5: update API result examples#30
Thoralf-M wants to merge 4 commits intomainfrom
move-view-function-results

Conversation

@Thoralf-M
Copy link
Member

Updating the results to what we actually get from the node using:

# JSON
curl https://indexer.devnet.iota.cafe \
--header 'content-type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "id": 0,
    "method": "iota_view",
    "params": {
        "functionName": "0x5e7a300e640f645a4030aeb507c7be16909e6fa9711e7ca2d4397bbd967d5c50::auction::get_auction_metadata",
        "typeArgs": [],
        "arguments": [
        "0x31deb8cbd320867089d52c37fed2d443520aac0fc5a957de1f64f9135b83f42b",
        "auc.iota"
        ]
    }
}' | jq .

# GraphQL
curl -X POST https://graphql.devnet.iota.cafe \
     --header 'x-iota-rpc-show-usage: true' \
     --header 'Content-Type: application/json' \
     --data '{
        "query": "query { moveViewCall( functionName: \"0x5e7a300e640f645a4030aeb507c7be16909e6fa9711e7ca2d4397bbd967d5c50::auction::get_auction_metadata\" arguments: [ \"0x31deb8cbd320867089d52c37fed2d443520aac0fc5a957de1f64f9135b83f42b\" \"auc.iota\" ] ) { error results } }"
      }' | jq .

@Thoralf-M Thoralf-M marked this pull request as ready for review January 19, 2026 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant