Todas as lições · CKB node, RPC and indexer · Começa aqui · Glossário
Dry run a transaction with test_tx_pool_accept before send_transactionPráticoDe uma correção
De uma correção · Verificação: certa · Verificada em 2026-11-19
The CKB node RPC test_tx_pool_accept takes the same params as send_transaction (the snake_case tx JSON without its hash, plus an outputs validator such as "passthrough"). It returns the cycles and fee the pool would accept without broadcasting, so a tool can check a pasted transaction before sending it for real.
Porque importa: Without a dry run, the only way to learn a pasted transaction's verification result, cycles and fee is to broadcast it for real, which cannot be undone once it is accepted.
Padrão
rpc<{ cycles: string; fee: string }>(this.url, "test_tx_pool_accept", [body, "passthrough"])Tirado do commit, encurtado.
- Conceitos
- Transaction building and fees, Network and RPC reliability
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-10-30
- Última mudança
- 2026-10-30
- Última verificação
- 2026-11-19
- Verificação contra o commit
- certa: a lição sai do commit e continua a valer no código de hoje
Fontes (1)
- 2026-10-30 · wildanrhmn/ckb-devnet-explorer · mais deste projeto
Mais sobre CKB node, RPC and indexer
- send_transaction error -1111 (PoolRejectedRBF) is a conflict, not "already in pool"
- A rejected or unknown get_transaction status does not make a signed transaction dead
- Check indexer lag with get_indexer_tip before signing
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Dry run a transaction with test_tx_pool_accept before send_transaction", CKB lessons, https://pulse.lusocryptolabs.com/learned/node/dry-run-a-transaction-with-test-tx-pool-accept-before-send-t, CC BY 4.0, last changed 2026-10-30.