📔
Blockchain API guides
  • Welcome to Data123 Documents!
  • Quick Start
  • Reference
    • API Reference
      • Aleo
        • RPC Methods
          • Latest Height
          • Latest Hash
          • Latest Block
          • Latest State Root
          • Get Block
          • Get Blocks
          • Get Block Transactions
          • Get Transaction
          • Get Confirmed Transaction
          • Get Memory pool Transactions
          • Get Progrem
          • Get Mapping Names
          • Get Mapping Value
          • Get State Path For Commitment
          • Find Block Hash
          • Find Transaction ID From Program ID
          • Find Transaction ID From Transition ID
          • Find Transition ID
          • Get Environment Info
          • Transaction Broadcast
      • Drand
        • JSON-RPC Methods
      • Filecoin
        • JSON-RPC Methods
      • Ethereum
        • JSON-RPC Methods
      • Starknet
Powered by GitBook
On this page
  • ENDPOINT
  • Arguments
  • Response
  • Request
  1. Reference
  2. API Reference
  3. Aleo
  4. RPC Methods

Get Mapping Value

Get the value in a key-value mapping corresponding to the supplied mappingKey.

PreviousGet Mapping NamesNextGet State Path For Commitment

Last updated 1 year ago

ENDPOINT

GET https://api.data123.io/aleo/<API KEY>/v1/testnet3/program/{programID}/mapping/{mappingName}/{mappingKey}

Arguments

Parameter
Type
Request
Description

programID

string

Yes

The program id of the requested mappings

mappingName

string

Yes

The name of the mapping to access

mappingKey

string

Yes

The key of the key-value pair in the mapping

Response

Parameter
type
Description

result

The requested mapping names

Request

curl https://api.data123.io/aleo/<API KEY>/v1/testnet3/program/token.aleo/mapping/{mappingName}/{mappingKey}
curl https://api.data123.io/aleo/<API KEY>/rpc/v1/testnet3 \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"getMappingValue","params":['{programID}','{mappingName}','{mappingKey}'],"id":1}'

object