API Docs
Create a new Rune order
Creates a new Rune order with the specified details. If webhookUrl
is provided, a webhookSecretToken
will be sent in the response. webhookSecretToken
is a shared secret between the server and the user. It is the only way to authenticate the incoming webhooks. It is unique for every order. webhookSecretToken
should be saved by the user in the database and checked on every received webhook.
The amount for the order.
1
The token for the order.
"SHITCOINPARADISE"
The webhook URL for the order.
"https://webhook.site/f5a2dcec-b7e4-4845-92d1-22ded0057104"
The additional fee for the order.
0
The description for the order.
"e14fefbe-fc23-40a2-b0d6-6aab7bff3438"
Successfully created the order.
"b15ad7f6-b34a-4a1e-8c0f-30492610a3d6"
1730120609939
"ordinalsbot"
"https://api.ordinalsbot.com/webhook/tokenpay"
"pending"
"56f3f01e-407b-4099-b172-591501f7129d"
Sent only when webhookUrl
is provided. webhookSecretToken
is a shared secret between the server and the user. It is the only way to authenticate the incoming webhooks. It is unique for every order. webhookSecretToken
should be saved by the user in the database and checked on every received webhook.
"c051a42521ab8d2987c3626a6246d99f8a3397cd6be626ee0eeb7f5457e92432"
Check specific transaction by txid
The transaction ID to be validated.
"1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
A successful response
"f358178f7f72a07cb983da3b19097a5b8a8160b367609701d3d1c15e7f3147e4"
Retrieve an order by ID
Fetches an order from the Firestore database using the provided order ID.
The ID of the order to retrieve.
"1234567890abcdef"
Successfully retrieved the order.
1721745751531
"ordinalsbot"
"e14fefbe-fc23-40a2-b0d6-6aab7bff3438"
"f2bcddd4-bd8d-4c88-bf8a-61be0d5b0600"
"pending"
"https://webhook.site/f5a2dcec-b7e4-4845-92d1-22ded0057104"
Withdraw funds from user account
Withdraws funds from the user's account to the specified address.
The protocol for the withdrawal.
"bitcoin"
The token for the withdrawal.
"BTC"
The amount to withdraw.
0.5
The address to withdraw to.
"bc1qh3rp2pns6nrr8mhx0rlzd5kktwm33wc4ax0h4y"
Successfully created the withdrawal request.
"f2bcddd4-bd8d-4c88-bf8a-61be0d5b0600"
"user123"
"bitcoin"
"BTC"
0.5
"bc1qh3rp2pns6nrr8mhx0rlzd5kktwm33wc4ax0h4y"
"pending"
1721745751531
Get withdrawal details
Retrieves the details of a specific withdrawal using the withdrawal ID.
The ID of the withdrawal to retrieve.
"f2bcddd4-bd8d-4c88-bf8a-61be0d5b0600"
Successfully retrieved the withdrawal details.
"f2bcddd4-bd8d-4c88-bf8a-61be0d5b0600"
"user123"
"bitcoin"
"BTC"
0.5
"bc1qh3rp2pns6nrr8mhx0rlzd5kktwm33wc4ax0h4y"
"completed"
1721745751531
Create a payment PSBT
Handles the creation of a payment PSBT.
The ID of the order.
"order123"
The payment address.
"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
The payment public key.
"02b463a1e6b8e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1"
The ordinal address.
"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kygt080"
The ordinal public key.
"03b463a1e6b8e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1e1a1"
The fee rate for the transaction.
0.0001
Successfully created the payment PSBT.
The created PSBT.
"cHNidP8BAFICAAAA..."
Get account balance
Retrieves the balance of a specific user account.
Successfully retrieved the account balance.
Last updated