예제 #1
0
        public async Task <ActionResult <RawJson> > GetAccountMetadata(
            [FromHeader] AuthHeaders headers,
            [Address] string address,
            string section = null)
        {
            if (!Auth.TryAuthenticate(headers, out var error))
            {
                return(Unauthorized(error));
            }

            return(Ok(await Metadata.GetAccountMetadata(address, section)));
        }