This guide explains how to interact with the rhino.fi Bridge contract on TON.
For this example we’ll use @ton/ton
and @ton/crypto
to interact with the contract, but you can replace it with any TON library of your choice.
Make sure to install it first:
To execute a bridge transaction, send a transfer with the following payload:
The commitmentId
required by the contract corresponds to the quoteId
returned by the API.
To obtain the commitmentId
, first request a quote from the API, then commit it. The response will include the quoteId
, which should be used as the commitmentId
in the contract call.
See the API bridge example for details.
This guide explains how to interact with the rhino.fi Bridge contract on TON.
For this example we’ll use @ton/ton
and @ton/crypto
to interact with the contract, but you can replace it with any TON library of your choice.
Make sure to install it first:
To execute a bridge transaction, send a transfer with the following payload:
The commitmentId
required by the contract corresponds to the quoteId
returned by the API.
To obtain the commitmentId
, first request a quote from the API, then commit it. The response will include the quoteId
, which should be used as the commitmentId
in the contract call.
See the API bridge example for details.