Here you will find detailed explanations of the objects you may need to provide your own constructor arguments for, such as the TransactionRequest.
The TransactionRequest is a payload which is received by our Backend API, and converted into an ExecutionRequest which contains a USD Quote. This ExecutionRequest takes in the players Payment Info and is sent back to the Backend for execution on the blockchain.
|userAddress||string||The address (also known as the public key) of the players wallet. I.e. |
|assetName||string||The name of the asset the player will purchase. This is used to track the transaction internally as well as in the receipt that is sent to the player. I.e. |
|chainId||integer||The Chain ID of the network we are interacting with. I.e. |
|contractAddress||string||The address of the contract we wish to interact with. I.e. |
|contractFunction||string||The function header we wish to invoke. I.e. |
|contractReturn||string||The return type of the function we wish to invoke. I.e. |
|contractParameters||string||An array of strings representing the parameters we are sending to the function header defined above. I.e. |
|txValue||string||The quantity of the native token the invoked function will cost. Units are defined in |
|gasLimit||string||The gas limit in wei that we wish to set for the desired function execution. I.e. |
Updated 7 months ago