Sui · Example Payload

Objects

BlockchainMoveWeb3CryptocurrencySmart Contracts

Objects is an example object payload from Sui, with 6 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

sui_getObjectsui_multiGetObjectssui_tryGetPastObjectsui_tryMultiGetPastObjectssuix_getDynamicFieldObjectsuix_getOwnedObjects

Example Payload

Raw ↑
{
  "sui_getObject": {
    "method": "sui_getObject",
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "sui_getObject",
      "params": [
        "0x53e4567ccafa5f36ce84c80aa8bc9be64e0d5ae796884274aef3005ae6733809",
        {
          "showType": true,
          "showOwner": true,
          "showPreviousTransaction": true,
          "showDisplay": false,
          "showContent": true,
          "showBcs": false,
          "showStorageRebate": true
        }
      ]
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "data": {
          "objectId": "0x53e4567ccafa5f36ce84c80aa8bc9be64e0d5ae796884274aef3005ae6733809",
          "version": "1",
          "digest": "33K5ZXJ3RyubvYaHuEnQ1QXmmbhgtrFwp199dnEbL4n7",
          "type": "0x2::coin::Coin<0x2::sui::SUI>",
          "owner": {
            "AddressOwner": "0xc8ec1d5b84dd6289e193b9f88de4a994358c9f856135236c3e75a925e1c77ac3"
          },
          "previousTransaction": "5PLgmQye6rraDYqpV3npV6H1cUXoJZgJh1dPCyRa3WCv",
          "storageRebate": "100",
          "content": {
            "dataType": "moveObject",
            "type": "0x2::coin::Coin<0x2::sui::SUI>",
            "hasPublicTransfer": true,
            "fields": {
              "balance": "100000000",
              "id": {
                "id": "0x53e4567ccafa5f36ce84c80aa8bc9be64e0d5ae796884274aef3005ae6733809"
              }
            }
          }
        }
      }
    }
  },
  "sui_multiGetObjects": {
    "method": "sui_multiGetObjects",
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "sui_multiGetObjects",
      "params": [
        [
          "0x77b3482580ee8d5bdc5b824808df54bfec4fc817622e5add0e48f749f01def98",
          "0x9060d87664c26a3f9a509228c21b16dc6797cf787c839a07edc03e6338421091",
          "0xb37379c527753c5c8ab783f697e7b61439368cd75ebe63d633af32ffb4a022d1",
          "0xee309e94ff5c9f6b02c5637f018f6ea7bed8f6c3d80f2a595c2305e12dd6d07c",
          "0x29bc7c8d230db3b417edb1184cf075da5e934f672d3da3e003d989075efaecc7"
        ],
        {
          "showType": true,
          "showOwner": true,
          "showPreviousTransaction": true,
          "showDisplay": false,
          "showContent": true,
          "showBcs": false,
          "showStorageRebate": true
        }
      ]
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": [
        {
          "data": {
            "objectId": "0x77b3482580ee8d5bdc5b824808df54bfec4fc817622e5add0e48f749f01def98",
            "version": "1",
            "digest": "2QwXW3qzMEZPAyyP9VHtXbC2tp7iomypQc5XnkyPsu5d",
            "type": "0x2::coin::Coin<0x2::sui::SUI>",
            "owner": {
              "AddressOwner": "0x504d411325e3c7f89d412044fe99007efb0f94f1e64d2e8090c619a39299d87e"
            },
            "previousTransaction": "GcjpL3GJBoiqc7RNwfV1R4411dFPYz4hTNyXQchsq6Sa",
            "storageRebate": "100",
            "content": {
              "dataType": "moveObject",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "hasPublicTransfer": true,
              "fields": {
                "balance": "100000000",
                "id": {
                  "id": "0x77b3482580ee8d5bdc5b824808df54bfec4fc817622e5add0e48f749f01def98"
                }
              }
            }
          }
        },
        {
          "data": {
            "objectId": "0x9060d87664c26a3f9a509228c21b16dc6797cf787c839a07edc03e6338421091",
            "version": "1",
            "digest": "5itvhMFvtJcV6fY2VY4x7F9Ex18q2N4Rr5WU4FXTJsFU",
            "type": "0x2::coin::Coin<0x2::sui::SUI>",
            "owner": {
              "AddressOwner": "0x23618df6438d21a48040e6bb568cafc13246bd847c60448160e0358cac4a1134"
            },
            "previousTransaction": "6m5GPm6XurdzRcEBd7epcnn4rDv8s3fVUK7dN6vYiYk8",
            "storageRebate": "100",
            "content": {
              "dataType": "moveObject",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "hasPublicTransfer": true,
              "fields": {
                "balance": "100000000",
                "id": {
                  "id": "0x9060d87664c26a3f9a509228c21b16dc6797cf787c839a07edc03e6338421091"
                }
              }
            }
          }
        },
        {
          "data": {
            "objectId": "0xb37379c527753c5c8ab783f697e7b61439368cd75ebe63d633af32ffb4a022d1",
            "version": "1",
            "digest": "8rsTRNPs13DZvD2xneZEtf2nAAipep6uHXPXWVXfzDBr",
            "type": "0x2::coin::Coin<0x2::sui::SUI>",
            "owner": {
              "AddressOwner": "0x8b95b4eaa9fd3b22b43f6b2c8e92090bd6d16522a6fd4fa83ec70a5f197ad656"
            },
            "previousTransaction": "FgEJG8uwH2z3e5e4d2QGeVDYH5tdhbR3vKyXsXWf2zqY",
            "storageRebate": "100",
            "content": {
              "dataType": "moveObject",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "hasPublicTransfer": true,
              "fields": {
                "balance": "100000000",
                "id": {
                  "id": "0xb37379c527753c5c8ab783f697e7b61439368cd75ebe63d633af32ffb4a022d1"
                }
              }
            }
          }
        },
        {
          "data": {
            "objectId": "0xee309e94ff5c9f6b02c5637f018f6ea7bed8f6c3d80f2a595c2305e12dd6d07c",
            "version": "1",
            "digest": "3w6ars2tmgBST4ozGxPWzSpEGyn4AdxMBv3K9sdkCWfR",
            "type": "0x2::coin::Coin<0x2::sui::SUI>",
            "owner": {
              "AddressOwner": "0x3fbbd3ebef7dbcc7b02346cdf05674452cc61f316af5d5d7c02b94b023242685"
            },
            "previousTransaction": "13Y8Ukebq34DkeL6dKEdr6ySSzeRMUpqhQXtZC9KmtTQ",
            "storageRebate": "100",
            "content": {
              "dataType": "moveObject",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "hasPublicTransfer": true,
              "fields": {
                "balance": "100000000",
                "id": {
                  "id": "0xee309e94ff5c9f6b02c5637f018f6ea7bed8f6c3d80f2a595c2305e12dd6d07c"
                }
              }
            }
          }
        },
        {
          "data": {
            "objectId": "0x29bc7c8d230db3b417edb1184cf075da5e934f672d3da3e003d989075efaecc7",
            "version": "1",
            "digest": "BE9GoMd7Mr8fGte3EdsXxUMwYjcErW71n6Gsm4iPvDmv",
            "type": "0x2::coin::Coin<0x2::sui::SUI>",
            "owner": {
              "AddressOwner": "0x9b5cd5df0df2a168259b7115a41ccc0a372b6fd0026e0c63043492ce4d0c19a6"
            },
            "previousTransaction": "5CxnSSi2hCEo7beFke1fCp23W1rCKKRfPJrAELCpxiHc",
            "storageRebate": "100",
            "content": {
              "dataType": "moveObject",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "hasPublicTransfer": true,
              "fields": {
                "balance": "100000000",
                "id": {
                  "id": "0x29bc7c8d230db3b417edb1184cf075da5e934f672d3da3e003d989075efaecc7"
                }
              }
            }
          }
        }
      ]
    }
  },
  "sui_tryGetPastObject": {
    "method": "sui_tryGetPastObject",
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "sui_tryGetPastObject",
      "params": [
        "0x11af4b844ff94b3fbef6e36b518da3ad4c5856fa686464524a876b463d129760",
        4,
        {
          "showType": true,
          "showOwner": true,
          "showPreviousTransaction": true,
          "showDisplay": false,
          "showContent": true,
          "showBcs": false,
          "showStorageRebate": true
        }
      ]
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "status": "VersionFound",
        "details": {
          "objectId": "0x11af4b844ff94b3fbef6e36b518da3ad4c5856fa686464524a876b463d129760",
          "version": "4",
          "digest": "5VPAwDXy3BL72ehFc7gSJoz27ahMd6spUg5YwYc4ibcv",
          "type": "0x2::coin::Coin<0x2::sui::SUI>",
          "owner": {
            "AddressOwner": "0x3568c40e814d9d5396d23087a0fd641e91e0e00df6c012cded9ef9ba5e5bf042"
          },
          "previousTransaction": "5jQByoouHBwaico5pQB73GdbzerC2StjTiHh5garBjiV",
          "storageRebate": "100",
          "content": {
            "dataType": "moveObject",
            "type": "0x2::coin::Coin<0x2::sui::SUI>",
            "hasPublicTransfer": true,
            "fields": {
              "balance": "10000",
              "id": {
                "id": "0x11af4b844ff94b3fbef6e36b518da3ad4c5856fa686464524a876b463d129760"
              }
            }
          }
        }
      }
    }
  },
  "sui_tryMultiGetPastObjects": {
    "method": "sui_tryMultiGetPastObjects",
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "sui_tryMultiGetPastObjects",
      "params": [
        [
          {
            "objectId": "0x38b3186a7bb26a1ab2c982a0a9b482aa70f5a010fffc60f20194ef0f597474e8",
            "version": "4"
          },
          {
            "objectId": "0xceaf9ee4582d3a233101e322a22cb2a5bea2e681ea5af4e59bd1abb0bb4fcb27",
            "version": "12"
          }
        ],
        {
          "showType": true,
          "showOwner": true,
          "showPreviousTransaction": true,
          "showDisplay": false,
          "showContent": true,
          "showBcs": false,
          "showStorageRebate": true
        }
      ]
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": [
        {
          "status": "VersionFound",
          "details": {
            "objectId": "0x38b3186a7bb26a1ab2c982a0a9b482aa70f5a010fffc60f20194ef0f597474e8",
            "version": "4",
            "digest": "hvBGBXvKVhC7XYgVPujuiLjxASR6UGAkSFrCRtVxX1F",
            "type": "0x2::coin::Coin<0x2::sui::SUI>",
            "owner": {
              "AddressOwner": "0x47866ff92885a3c21a7703f564721c198308aa0c71b771ada6b96c16fc9c0fa7"
            },
            "previousTransaction": "6heEteheiLZcS8iVNXsNUnU7oVjzT7UHYzprGcuWQ4gG",
            "storageRebate": "100",
            "content": {
              "dataType": "moveObject",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "hasPublicTransfer": true,
              "fields": {
                "balance": "10000",
                "id": {
                  "id": "0x38b3186a7bb26a1ab2c982a0a9b482aa70f5a010fffc60f20194ef0f597474e8"
                }
              }
            }
          }
        },
        {
          "status": "VersionFound",
          "details": {
            "objectId": "0xceaf9ee4582d3a233101e322a22cb2a5bea2e681ea5af4e59bd1abb0bb4fcb27",
            "version": "12",
            "digest": "B5z4YkAgTi78fdxMbxG3fv2V4YBkhpc8PRCPz8MzLtbf",
            "type": "0x2::coin::Coin<0x2::sui::SUI>",
            "owner": {
              "AddressOwner": "0xa6ced287081357950315a8842c3870f2d83f980fe0996a92d351d6749a0a0b47"
            },
            "previousTransaction": "BLN2oUCHmwmaAXXCxbojTcozUqZYfvXx4Bkgi7xcgyVc",
            "storageRebate": "100",
            "content": {
              "dataType": "moveObject",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "hasPublicTransfer": true,
              "fields": {
                "balance": "20000",
                "id": {
                  "id": "0x38b3186a7bb26a1ab2c982a0a9b482aa70f5a010fffc60f20194ef0f597474e8"
                }
              }
            }
          }
        }
      ]
    }
  },
  "suix_getDynamicFieldObject": {
    "method": "suix_getDynamicFieldObject",
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "suix_getDynamicFieldObject",
      "params": [
        "0x3ddea0f8c3da994d9ead562ce76e36fdef6a382da344930c73d1298b0e9644b8",
        {
          "type": "0x0000000000000000000000000000000000000000000000000000000000000009::test::TestField",
          "value": "some_value"
        }
      ]
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "data": {
          "objectId": "0x3ddea0f8c3da994d9ead562ce76e36fdef6a382da344930c73d1298b0e9644b8",
          "version": "1",
          "digest": "Faiv4yqGR4HjAW8WhMN1NHHNStxXgP3u22dVPyvLad2z",
          "type": "0x0000000000000000000000000000000000000000000000000000000000000009::test::TestField",
          "owner": {
            "AddressOwner": "0x5ea6f7a348f4a7bd1a9ab069eb7f63865de3075cc5a4e62432f634b50fd2bb2b"
          },
          "previousTransaction": "5qTpesGST3v9NmMTkzV7HHNZRJh52BSqUTErc6L6XGm",
          "storageRebate": "100",
          "content": {
            "dataType": "moveObject",
            "type": "0x0000000000000000000000000000000000000000000000000000000000000009::test::TestField",
            "hasPublicTransfer": true,
            "fields": {}
          }
        }
      }
    }
  },
  "suix_getOwnedObjects": {
    "method": "suix_getOwnedObjects",
    "request": {
      "jsonrpc": "2.0",
      "id": 1,
      "method": "suix_getOwnedObjects",
      "params": [
        "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827",
        {
          "filter": {
            "MatchAll": [
              {
                "StructType": "0x2::coin::Coin<0x2::sui::SUI>"
              },
              {
                "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
              },
              {
                "Version": "13488"
              }
            ]
          },
          "options": {
            "showType": true,
            "showOwner": true,
            "showPreviousTransaction": true,
            "showDisplay": false,
            "showContent": false,
            "showBcs": false,
            "showStorageRebate": false
          }
        },
        "0x0cd4bb4d4f520fe9bbf0cf1cebe3f2549412826c3c9261bff9786c240123749f",
        3
      ]
    },
    "response": {
      "jsonrpc": "2.0",
      "id": 1,
      "result": {
        "data": [
          {
            "data": {
              "objectId": "0x0b37a91692359a98496738a58c17a9334aeacc435c70ab9635e47a277d8f8dd9",
              "version": "13488",
              "digest": "FZzfCnKCSRW2jN9AwkiarjYQapViUQAh799aiRMZ4YC2",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "owner": {
                "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
              },
              "previousTransaction": "AJhAseKLEndWYT45FbvYGgCJQTqZP537xqNnthY9FqSa",
              "storageRebate": "100"
            }
          },
          {
            "data": {
              "objectId": "0xd4feace07fc863a2eef286c3e95ed48e2c181bb65db5beaf7ea664b4ca6b744c",
              "version": "13488",
              "digest": "3cxBDcfnkVgtXWhnMnKKkMGtZdiEorUhb1vdp2DkVyfi",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "owner": {
                "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
              },
              "previousTransaction": "8qCvxDHh5LtDfF95Ci9G7vvQN2P6y4v55S9xoKBYp7FM",
              "storageRebate": "100"
            }
          },
          {
            "data": {
              "objectId": "0xe26860fac6839ce2d7ed7e6f29d276a1b4c23f2d9a9b6f0d8b2c17beace292b7",
              "version": "13488",
              "digest": "3tX9sgYC4A6nVKGjKEE5xxW6t4zkvDL9BwjuaxMg8arP",
              "type": "0x2::coin::Coin<0x2::sui::SUI>",
              "owner": {
                "AddressOwner": "0xdbc9abc01a87906b033a75750e741edb2df5ea5d55c96a611371d22799d26827"
              },
              "previousTransaction": "5Ka3vDaDy9h5UYk3Maz3vssWHrhbcGXQgwg8fL2ygyTi",
              "storageRebate": "100"
            }
          }
        ],
        "nextCursor": "0xe26860fac6839ce2d7ed7e6f29d276a1b4c23f2d9a9b6f0d8b2c17beace292b7",
        "hasNextPage": true
      }
    }
  }
}