Skip to content

Get Mapping Value

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

ENDPOINT
GET https://aleo-mainnet.obscura.network/v1/<API_KEY>/mainnet/program/{programID}/mapping/{mappingName}/{mappingKey}
ENDPOINT
GET https://aleo-testnetbeta.obscura.network/v1/<API_KEY>/testnet/program/{programID}//mapping/{mappingName}/{mappingKey}s

Arguments

Parameter Type Required Description
programID string Yes The program id of the requested mapping
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 object The value of the key-value pair in the mapping
````