LogoLogo
  • Accumulate Core
  • Design
    • Model
      • Overview
      • Domains
      • Accounts
      • Messages
      • Transactions
      • Authority and Signing
      • Chains
    • Architecture
      • Partitions
      • Intermediate anchoring
      • Directory network
  • Implementation
    • Implementation
  • For Developers
    • Encoding
    • Simulator
    • API v3
      • Methods
        • Query
      • Transports
        • JSON-RPC
    • Examples
      • Status
      • Proofs
  • Glossary
    • Accounts
    • Transactions
Powered by GitBook
On this page
Edit on GitLab
Export as PDF
  1. For Developers
  2. API v3
  3. Transports

JSON-RPC

Accumulate supports a standards-compliant JSON-RPC implementation. For example:

curl https://mainnet.accumulatenetwork.io/v3 -X POST --data-raw '
{
  "jsonrpc": "2.0",
  "method": "query",
  "params": {
    "scope": "ACME"
  },
  "id":1
}'

# Result:
# {
#   "jsonrpc": "2.0",
#   "result": {
#     "recordType": "account",
#     "account": {
#       "type": "tokenIssuer",
#       "url": "acc://ACME",
#       "authorities": [
#         {
#           "url": "acc://dn.acme/operators",
#           "disabled": true
#         },
#         {
#           "url": "acc://staking.acme/book"
#         }
#       ],
#       "symbol": "ACME",
#       "precision": 8,
#       "issued": "24452643448428198",
#       "supplyLimit": "50000000000000000"
#     },
#     "pending": {
#       "recordType": "range",
#       "records": [
#         {
#           "recordType": "txID",
#           "value": "acc://d0049b680a8acf4636e62eb46a973fc7efb0d913af0e34b06fce614d5bda495f@acme"
#         }
#       ],
#       "start": 0,
#       "total": 1
#     }
#   },
#   "id": 1
# }
PreviousTransportsNextExamples

Last updated 1 year ago