Get the value in a key-value mapping corresponding to the supplied mappingKey.
Last updated 9 months ago
GET https://api.data123.io/aleo/<API KEY>/v1/testnet3/program/{programID}/mapping/{mappingName}/{mappingKey}
programID
string
Yes
The program id of the requested mappings
mappingName
The name of the mapping to access
mappingKey
The key of the key-value pair in the mapping
result
The requested mapping names
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}'