From 6ef6931d2b0bdfdc918b93f8342692c65e97e1f9 Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Mon, 19 Jan 2026 17:12:01 +0100 Subject: [PATCH 1/4] IIP5: update API result examples --- iips/IIP-0005/iip-0005.md | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/iips/IIP-0005/iip-0005.md b/iips/IIP-0005/iip-0005.md index 33ce198..33462c0 100644 --- a/iips/IIP-0005/iip-0005.md +++ b/iips/IIP-0005/iip-0005.md @@ -81,12 +81,16 @@ The following example can be taken as a reference for the API model. ```json { - "results": [ - "start": "447575403174913", - "end": "447576324774913", - "address": "0xc9f649324694c0c18c6278c3a81945fb3ef0c9b91f21dd5b6a4364447ee348df", - "value": "500000000" - ] + "jsonrpc": "2.0", + "id": 0, + "result": { + "functionReturnValues": [ + "1748341418652", + "1748345018652", + "0xc9f649324694c0c18c6278c3a81945fb3ef0c9b91f21dd5b6a4364447ee348df", + "500000000" + ] + } } ``` @@ -124,13 +128,14 @@ Response: ```graphql { "data": { - "view": { - "results": { - "start": "447575403174913", - "end": "447576324774913", - "address": "0xc9f649324694c0c18c6278c3a81945fb3ef0c9b91f21dd5b6a4364447ee348df", - "value": "500000000" - } + "moveViewCall": { + "error": null, + "results": [ + "1748341418652", + "1748345018652", + "0xc9f649324694c0c18c6278c3a81945fb3ef0c9b91f21dd5b6a4364447ee348df", + "500000000" + ] } } } From 90e41800f01f0c7a4186277feede0d9f5380ce7a Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Mon, 19 Jan 2026 17:15:53 +0100 Subject: [PATCH 2/4] Fix argument order --- iips/IIP-0005/iip-0005.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iips/IIP-0005/iip-0005.md b/iips/IIP-0005/iip-0005.md index 33462c0..091db36 100644 --- a/iips/IIP-0005/iip-0005.md +++ b/iips/IIP-0005/iip-0005.md @@ -70,8 +70,8 @@ The following example can be taken as a reference for the API model. "functionName": "0x5e7a300e640f645a4030aeb507c7be16909e6fa9711e7ca2d4397bbd967d5c50::auction::get_auction_metadata", "typeArgs": [], "arguments": [ - "auc.iota", - "0x31deb8cbd320867089d52c37fed2d443520aac0fc5a957de1f64f9135b83f42b" + "0x31deb8cbd320867089d52c37fed2d443520aac0fc5a957de1f64f9135b83f42b", + "auc.iota" ] } } @@ -114,7 +114,7 @@ Query: view( functionName: "0x5e7a300e640f645a4030aeb507c7be16909e6fa9711e7ca2d4397bbd967d5c50::auction::get_auction_metadata" typeArgs: [] - arguments: [ "auc.iota", "0x31deb8cbd320867089d52c37fed2d443520aac0fc5a957de1f64f9135b83f42b"] + arguments: [ "0x31deb8cbd320867089d52c37fed2d443520aac0fc5a957de1f64f9135b83f42b", "auc.iota" ] ) { errors results { From cae91fa7d80e9b50cd035cd0af030c4bbd2312cb Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Mon, 19 Jan 2026 17:22:11 +0100 Subject: [PATCH 3/4] fix graphql query example --- iips/IIP-0005/iip-0005.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/iips/IIP-0005/iip-0005.md b/iips/IIP-0005/iip-0005.md index 091db36..b006a76 100644 --- a/iips/IIP-0005/iip-0005.md +++ b/iips/IIP-0005/iip-0005.md @@ -111,14 +111,14 @@ view( Query: ```graphql -view( - functionName: "0x5e7a300e640f645a4030aeb507c7be16909e6fa9711e7ca2d4397bbd967d5c50::auction::get_auction_metadata" - typeArgs: [] - arguments: [ "0x31deb8cbd320867089d52c37fed2d443520aac0fc5a957de1f64f9135b83f42b", "auc.iota" ] -) { - errors - results { - json +{ + moveViewCall( + functionName: "0x5e7a300e640f645a4030aeb507c7be16909e6fa9711e7ca2d4397bbd967d5c50::auction::get_auction_metadata" + typeArgs: [] + arguments: ["0x31deb8cbd320867089d52c37fed2d443520aac0fc5a957de1f64f9135b83f42b", "auc.iota"] + ) { + error + results } } ``` From 728c7d836b0adc296ffe63b5cecbfb6e4b519c77 Mon Sep 17 00:00:00 2001 From: Thoralf-M <46689931+Thoralf-M@users.noreply.github.com> Date: Mon, 19 Jan 2026 17:22:55 +0100 Subject: [PATCH 4/4] fix graphql type names --- iips/IIP-0005/iip-0005.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iips/IIP-0005/iip-0005.md b/iips/IIP-0005/iip-0005.md index b006a76..f36d997 100644 --- a/iips/IIP-0005/iip-0005.md +++ b/iips/IIP-0005/iip-0005.md @@ -99,11 +99,11 @@ The following example can be taken as a reference for the API model. A new GraphQL read query is added to the IOTA GraphQL RPC interface with the following structure: ```graphql -view( +moveViewCall( functionName: String! typeArguments: [String] arguments: [String] -): ViewResults! +): MoveViewResult! ``` #### Example