Authentication Flow
Create a temporary (or "session") wallet with your Ethereum Wallet to get access to your funds on Dexilon Chain
Create permissions for a temporary account - aka Authorization
Step 1: Create a temporary Wallet
Step 2: Create a web3 Wallet instance
To create an ECDSA
signature with your Ethereum Wallet
, you need to create an instance of it in the code:
Step 3: Create an ECDSA signature with your Ethereum Wallet
Step 4: Send a Grant Permission transaction to Dexilon
Here you can see an example of grantee account creation and giving it the grants to control the fund of your primary account
After that you can use the granteeClient
to control you funds on Dexilon using the methods of the SDK
Next steps
Last updated