-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add rgbpp address activity api #182
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Asset API Activity Verification1. Obtain transaction history successfully (pure BTC transaction)
Test description: The user address only has BTC transactions, and the transaction history is obtained successfully. Expected response: L2 -> L1 is no op return 2. Obtaining transaction history successfully (RGB++ transaction has no CKB transaction information)
Test description: The user address has RGB++ transactions, but no associated CKB transaction information. 3. Obtaining transaction history successfully (BTC transaction unconfirmed)Test description: The user address has RGB++ transactions, and the associated BTC transactions are not confirmed. 4. Obtaining transaction history successfully (BTC transaction confirmed, CKB transaction unconfirmed)
Test description: The user address has an RGB++ transaction, and the associated BTC transaction is confirmed, but the CKB transaction is not confirmed.
Test description: The user address has RGB++ transactions, and the associated BTC and CKB transactions have been confirmed. 6. Get transaction history in pages (via after_btc_txid)
7. Filter transactions by type_script
Test Description: Filter transaction history based on type_script. 8. Filter by after_btc_txid
Exception testing1. Invalid address format
Test Description: Requesting transaction history using an invalid address format. 2. Address does not exist
Test description: Request the transaction history of a non-existent address. 3. Invalid type_script argument
Test description: Requesting transaction history with invalid type_script parameter. 4. after_btc_txid is invalid
{
"message": "after_txid not found"
} |
|
Changes
/rgbpp/v1/transaction/:btc_txid
query RGB++ CKB txhash by batching requests/rgbpp/v1/address/:btc_address/activity
for query RGB++ transaction (includes BTC Tx and isomorphic(CKB) Tx.type_script
: same as other API, pass type script to filter transactionrgbpp_only
: only RGB++ related transactions are returnedafter_btc_txid
: As a paging parameter, pass as the cursor (get the cursor in the response by the previous request)btcTx
andisRgbpp=false
(Rgb++ transactions sent by other services also return this before the block is confirmed)isomorphicTx.inputs
,isomorphicTx.outputs
and one ofisomorphicTx.CKBRawTx
andisomorphicTx.CkbTx
isomorphicTx.ckbRawTx
withisomorphicTx.status.confirmed = false
if RGB++ isomorphic(CKB) tx not sentisomorphicTx.ckbTx
withisomorphicTx.status.confirmed = false
if RGB++ isomorphic(CKB) tx have sentisomorphicTx.ckbTx
withisomorphicTx.status.confirmed = true
Interface
Notes
queryBtcTimeLockTxByBtcTxId
cost for 70% of the total response timescriptSearchMode: partial
may help, but testnet CKB node unsupport for now