Loading ABI for ETH ERC-20 #1541
-
I'm trying to attach to an ERC-20 contract I created in Remix. I have downloaded the ABI, how can I load this ABI into Reach so it can make remote contract calls via APIs ? I searched all the related abi topics but could not find anything... Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
You can use any remote object by passing an interface to the Reach can also work with ERC-20s by using the |
Beta Was this translation helpful? Give feedback.
-
Thanks... Let me see if I understand this correctly .. Input : Address, UInt256
ERC20 ABI
|
Beta Was this translation helpful? Give feedback.
-
Add-on question ... REMOTE_FUN.withBill() --- Returns a remote function that provides some number of network tokens and, possibly, non-network tokens to the caller when it returns. The exact amount is returned from the invocation by wrapping the original result in a tuple. How to I specify the non-network tokens to be billed vs network tokens ?? |
Beta Was this translation helpful? Give feedback.
You can use any remote object by passing an interface to the
remote
function, along with the contract address --- https://docs.reach.sh/rsh/consensus/#remote-objectsReach can also work with ERC-20s by using the
Token
type.