예제 #1
0
 public async Task <ActionResult> BuildEntrypointParameters([Address] string address, string name, string value)
 {
     try
     {
         using var doc = JsonDocument.Parse(value);
         return(Ok(await Accounts.BuildEntrypointParameters(address, name, doc.RootElement)));
     }
     catch (Exception ex)
     {
         return(new BadRequest(nameof(value), ex.Message));
     }
 }