Skip to content

Calling smart contracts through a Snap #1168

Answered by ritave
Tranquil-Flow asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Tranquil-Flow you can use the wallet global object as a web3 provider, and so can use Ethers.js normally.

I've actually written a snap-arbitrage bot in the past. The code is now broken but the main ideas stand.

We're going to have a breaking change released in the next Flask which will require an additional permission to use wallet as a web3 provider, keep an eye out on Announcements.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tranquil-Flow
Comment options

Answer selected by ritave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants