-
Discord user russfustino asks:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
When you ask for an example "where Reach creates the spec for the contract", the way you create the ABI spec is through Reach's Any When you create a Note that We don't have an example of a non-Reach program using a Reach program's API via the ABI, but once you understand that Reach's To extract the ABI for a given Reach contract, you can use
|
Beta Was this translation helpful? Give feedback.
examples/remote-rsh
shows how to it within Reach.https://github.com/reach-sh/reach-lang/blob/master/examples/remote-rsh/index.rsh
When you ask for an example "where Reach creates the spec for the contract", the way you create the ABI spec is through Reach's
API
andView
features.Any
API
s you create in Reach are compliant with the Algorand ABI.https://docs.reach.sh/rsh/appinit/#ref-programs-appinit-api
When you create a
remote(addr, interface)
object in Reach, it uses the ABI according to the function names and types as specified ininterface
. This works whether the remote contract is a Reach contract or not, because Reach uses the same ABI standards as everyone else to implement itsAPI
…