Retrieve one key
Returns
Retrieves the content value for the queried key for an address. If no aggregate for this address and the key is found, null will be returned.
Usage
Required parameters
Parameter | Description |
---|---|
address** ** - string | The chain |
key** ** - string | The |
Optional parameters
In addition to the required parameters above, an object of optional parameters can be passed following the key like so:
aggregates.fetch_one(address, key,
{api_server: "https://api2.aleph.im"}
)
api_server - string
Default: "https://api1.aleph.im"
Target API server
Example
RETRIEVE AGGREGATE
Aleph returns the content for the key and the address queried if one is found.
RESPONSE
Last updated