sui_getNormalizedMoveStruct RPC Method
参数
package
字符串
必填
正在加载...
module
字符串
必填
正在加载...
struct_name
字符串
必填
正在加载...
退货
结果
对象
正在加载...
abilities
对象
正在加载...
abilities
字符串
正在加载...
typeParameters
数组
正在加载...
fields
数组
正在加载...
名称
字符串
正在加载...
类型
字符串
正在加载...
请求
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \2--header 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 1,6"method": "sui_getNormalizedMoveStruct",7"params": [8"0x3c00b4fd6f40f73ea58b91fd9a71eb1734584271d83089fd2441fa2e6140cc59",9"gear",10"GEAR"11]12}13'
1curl --location 'https://docs-demo.sui-mainnet.quiknode.pro/' \2--header 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 1,6"method": "sui_getNormalizedMoveStruct",7"params": [8"0x3c00b4fd6f40f73ea58b91fd9a71eb1734584271d83089fd2441fa2e6140cc59",9"gear",10"GEAR"11]12}13'
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5“jsonrpc”: "2.0",6"id": 1,7"method": "sui_getNormalizedMoveStruct",8“params”: [9"0x3c00b4fd6f40f73ea58b91fd9a71eb1734584271d83089fd2441fa2e6140cc59",10"gear",11"GEAR"12]13});1415const requestOptions = {16方法: "POST",17标题: myHeaders,18正文: raw,19重定向: "follow"20};2122fetch(“https://docs-demo.sui-mainnet.quiknode.pro/”, requestOptions)23.然后((响应) => 响应.文本())24.然后((结果) => 控制台.log(result))25.catch((error) => 控制台.错误(error));
1const myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34const raw = JSON.stringify({5“jsonrpc”: "2.0",6"id": 1,7"method": "sui_getNormalizedMoveStruct",8“params”: [9"0x3c00b4fd6f40f73ea58b91fd9a71eb1734584271d83089fd2441fa2e6140cc59",10"gear",11"GEAR"12]13});1415const requestOptions = {16方法: "POST",17标题: myHeaders,18正文: raw,19重定向: "follow"20};2122fetch(“https://docs-demo.sui-mainnet.quiknode.pro/”, requestOptions)23.然后((响应) => 响应.文本())24.然后((结果) => 控制台.log(result))25.catch((error) => 控制台.错误(error));
1导入 请求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56有效载荷 = json.dumps({7“jsonrpc”: "2.0",8"id": 1,9"method": "sui_getNormalizedMoveStruct",10“params”: [11"0x3c00b4fd6f40f73ea58b91fd9a71eb1734584271d83089fd2441fa2e6140cc59",12"gear",13"GEAR"14]15})16标题 = {17“Content-Type”: 'application/json'18}1920回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2122打印(响应.text)23
1导入 请求2import json34url = "https://docs-demo.sui-mainnet.quiknode.pro/"56有效载荷 = json.dumps({7“jsonrpc”: "2.0",8"id": 1,9"method": "sui_getNormalizedMoveStruct",10“params”: [11"0x3c00b4fd6f40f73ea58b91fd9a71eb1734584271d83089fd2441fa2e6140cc59",12"gear",13"GEAR"14]15})16标题 = {17“Content-Type”: 'application/json'18}1920回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2122打印(响应.text)23
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13“jsonrpc”: "2.0",14"id": 1,15"method": "sui_getNormalizedMoveStruct",16“params”: [17"0x3c00b4fd6f40f73ea58b91fd9a71eb1734584271d83089fd2441fa2e6140cc59",18"gear",19"GEAR"20]21})2223回复 = https.请求(请求)24返回响应.read_body25
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.sui-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.主机, url.端口)8https.use_ssl = true910请求 = Net::HTTP::POST.new(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13“jsonrpc”: "2.0",14"id": 1,15"method": "sui_getNormalizedMoveStruct",16“params”: [17"0x3c00b4fd6f40f73ea58b91fd9a71eb1734584271d83089fd2441fa2e6140cc59",18"gear",19"GEAR"20]21})2223回复 = https.请求(请求)24返回响应.read_body25