Set up and complete the settlement workflow in the Sandbox environment.
source_profile_id
) and Target Profile (target_profile_id
).
The Profiles are under the same Sandbox Account for simplicity and to allow completion of the steps with a single authentication.
This guild also funds the Source Profile with BTC and ETH for the DELIVER
leg and USD in the Target Profile for the RECEIVE
leg before creating the transaction request.
Contact your Entity Manager or Support if you run into any issues or don’t have access to a Sandbox Account.
settlement:read_transaction
and settlement:write_transaction
scopes to your Sandbox Account under the API Management setting and then authenticate in Sandbox using the scopes.
Also include funding:read_profile
and funding:write_profile
for creating and funding Profiles.
access_token
to use in the request authorization header throughout this guide.
Source Profile
and the second with Target Profile
as the nickname
.
id
from the response to fund the Profile and propose a transaction.
id
from the response to fund the Profile and propose a transaction.
assets
query parameter to filter out all other assets.
profile_id
created earlier, use Create Transaction to propose exchanging 1 BTC and 5 ETH (in the Source Profile balance) for $50,000 USD (in the Target Profile balance). The ref_id
must be unique. The settlement window defaults apply if settlement_window_start
and/or settlement_window_end
are not specified.
Transaction
object.
The unique transaction id
is used to approve and retrieve the transaction, and the Source Profile owner can use the id
to cancel the PENDING
transaction.
The transaction status can be used by either party to retrieve a list of filtered transactions.
Transaction.id
from the propose step as the transaction_id
.
You can also look up a transaction by status to find the id
.
AFFIRMED
status and updated_at
timestamp.
AFFIRMED
transaction occurs only when both counterparties fully fund their Profiles.
Transaction
object.
When the transaction completes, the status and updated_at
timestamp reflect the most recent activity.