Direct Smart Contract Interaction

Alternatively to our Python SDK, customers can use third-party Web3 libraries or platforms like fireblocks to directly interact with the smart contract on the Polygon network. This approach requires a understanding of smart contract inte ractions and the required payload.

The following three examples will give you some more insides about the required interaction with the smart contract.

Use Cases

Creating a Buy Order

To create a buy order, you need to prepare the payload with specific parameters detailing price, quantity, and other relevant details.

Creating a Sell Order

Similar to a buy order, a sell order requires you to specify parameters in the payload such as the asset you intend to sell and your desired price.

Canceling Open Orders

Canceling orders requires identification of the specific order you want to cancel. Ensure the payload includes the correct order ID.

Last updated