txnDuck icon indicating copy to clipboard operation
txnDuck copied to clipboard

NFD support for addresses

Open No-Cash-7970 opened this issue 1 year ago • 0 comments

When an NFD name (e.g. nocash.algonautog.algo) is entered into an address form field, the name should be looked up to retrieve the "deposit account" for that NFD name.

Thoughts

  • No attempts to lookup an NFD name until field value ends with ".algo"
  • If field value ends with ".algo", lookup requests should be debounced (500-800ms?) and form validation skipped for that field
  • If value does not end with ".algo", then it should be treated as an attempt to enter an address
  • Resolved address from NFD lookup is displayed below the field's input box
  • Add setting to disable NFD lookup?
  • NFD lookup disabled for custom node configuration because the node network cannot be reliably determined solely based on node configuration and it is a hassle to make an extra algod request to find out.

Resources

  • https://api-docs.nf.domains/
  • https://api-docs.nf.domains/reference/integrators-guide
  • https://editor.swagger.io/?url=https://api.nf.domains/info/openapi3.yaml
  • Example: https://api.nf.domains/nfd/nocash.algonautog.algo?view=tiny
  • SVG of NFD logo: https://github.com/TxnLab/next-use-wallet/blob/main/public/nfd.svg

No-Cash-7970 avatar Nov 15 '23 02:11 No-Cash-7970