Skip to content

Instantly share code, notes, and snippets.

@yuche
Created December 10, 2020 11:48
Show Gist options
  • Save yuche/22c8d44023365595d105c46b6fd8860b to your computer and use it in GitHub Desktop.
Save yuche/22c8d44023365595d105c46b6fd8860b to your computer and use it in GitHub Desktop.
burn

reject error

{
    "code": -1,
    "message": "CKBInternalError: Script(TransactionScriptError { source: Inputs[0].Lock, cause: ValidationFailure(-101): the exit code is per script specific, for system scripts, please check https://github.com/nervosnetwork/ckb-system-scripts/wiki/Error-codes })",
    "data": "Error { kind: TransactionScriptError { source: Inputs(0, Lock), cause: ValidationFailure(-101) }\n\nstack backtrace:\n 0: failure::backtrace::internal::InternalBacktrace::new\n 1: <failure::backtrace::Backtrace as core::default::Default>::default\n 2: ckb_script::error::<impl core::convert::From<ckb_script::error::TransactionScriptError> for ckb_error::Error>::from\n 3: ckb_script::verify::TransactionScriptsVerifier<DL>::verify\n 4: ckb_verification::transaction_verifier::ContextualTransactionVerifier<M,CS>::verify\n 5: <core::iter::adapters::ResultShunt<I,E> as core::iter::traits::iterator::Iterator>::next\n 6: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<T,I>>::from_iter\n 7: core::iter::adapters::process_results\n 8: ckb_tx_pool::process::verify_rtxs\n 9: tokio::runtime::enter::exit\n 10: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll\n 11: ckb_tx_pool::service::process::{{closure}}\n 12: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once\n 13: tokio::runtime::task::harness::Harness<T,S>::poll\n 14: std::thread::local::LocalKey<T>::with\n 15: tokio::runtime::thread_pool::worker::Context::run_task\n 16: tokio::runtime::thread_pool::worker::Context::run\n 17: tokio::macros::scoped_tls::ScopedKey<T>::set\n 18: tokio::runtime::thread_pool::worker::run\n 19: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut\n 20: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once\n 21: tokio::runtime::task::harness::Harness<T,S>::poll\n 22: tokio::runtime::blocking::pool::Inner::run\n 23: tokio::runtime::context::enter\n 24: std::sys_common::backtrace::__rust_begin_short_backtrace\n 25: core::ops::function::FnOnce::call_once{{vtable.shim}}\n 26: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once\n at rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/liballoc/boxed.rs:1081\n <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once\n at rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/liballoc/boxed.rs:1081\n std::sys::unix::thread::Thread::new::thread_start\n at src/libstd/sys/unix/thread.rs:87\n 27: start_thread\n 28: clone\n\n\nScript }"
}

send transaction RPC

{
    "jsonrpc": "2.0",
    "id": 5585951,
    "method": "send_transaction",
    "params": [
        {
            "version": "0x0",
            "cell_deps": [
                {
                    "out_point": {
                        "tx_hash": "0x62558a89f6792446c7b5c834d523a2d75eba515b75662a3d699a3e198ef44496",
                        "index": "0x0"
                    },
                    "dep_type": "code"
                },
                {
                    "out_point": {
                        "tx_hash": "0x62558a89f6792446c7b5c834d523a2d75eba515b75662a3d699a3e198ef44496",
                        "index": "0x4"
                    },
                    "dep_type": "code"
                },
                {
                    "out_point": {
                        "tx_hash": "0xe12877ebd2c3c364dc46c5c992bcfaf4fee33fa13eebdf82c591fc9825aab769",
                        "index": "0x0"
                    },
                    "dep_type": "code"
                },
                {
                    "out_point": {
                        "tx_hash": "0x57a62003daeab9d54aa29b944fc3b451213a5ebdf2e232216a3cfed0dde61b38",
                        "index": "0x0"
                    },
                    "dep_type": "code"
                }
            ],
            "header_deps": [],
            "inputs": [
                {
                    "since": "0x0",
                    "previous_output": {
                        "tx_hash": "0x4374c2f9d8b4d8bcab42a337e72afe2968e269b4fd769b9ee7c7d348c9a442a8",
                        "index": "0x0"
                    }
                },
                {
                    "since": "0x0",
                    "previous_output": {
                        "tx_hash": "0x41874a7e9065fddfb55c38bcf787d032fece84ca3241cf0f2546e1ea3e8de1ec",
                        "index": "0x0"
                    }
                },
                {
                    "since": "0x0",
                    "previous_output": {
                        "tx_hash": "0x059fe397e3657faabbfede3267c2c5eb42ade3debf1da5032583e7d8fedd6566",
                        "index": "0x1"
                    }
                }
            ],
            "outputs": [
                {
                    "capacity": "0x513619a00",
                    "lock": {
                        "code_hash": "0x58c5f491aba6d61678b7cf7edf4910b1f5e00ec0cde2f42e0abb4fd9aff25a63",
                        "hash_type": "type",
                        "args": "0x6c8c7f80161485c3e4adceda4c6c425410140054"
                    },
                    "type": {
                        "code_hash": "0x5da121aa6b22039b33aa373f8a0131e6db7eb60225afc63138b3d91ce2528ded",
                        "hash_type": "data",
                        "args": "0x"
                    }
                },
                {
                    "capacity": "0x4a817c800",
                    "lock": {
                        "code_hash": "0x58c5f491aba6d61678b7cf7edf4910b1f5e00ec0cde2f42e0abb4fd9aff25a63",
                        "hash_type": "type",
                        "args": "0x6c8c7f80161485c3e4adceda4c6c425410140054"
                    },
                    "type": {
                        "code_hash": "0xc5e5dcf215925f7ef4dfaf5f4b4f105bc321c02776d6e7d52a1db3fcd9d011a4",
                        "hash_type": "type",
                        "args": "0x636382ce2ff6d1216d16eebe970d4a59657319231b8aaf70b20971ee7f2d072e"
                    }
                },
                {
                    "capacity": "0x2198b985b42",
                    "lock": {
                        "code_hash": "0x58c5f491aba6d61678b7cf7edf4910b1f5e00ec0cde2f42e0abb4fd9aff25a63",
                        "hash_type": "type",
                        "args": "0x6c8c7f80161485c3e4adceda4c6c425410140054"
                    }
                }
            ],
            "outputs_data": [
                "0x6c8c7f80161485c3e4adceda4c6c425410140054c4401d8d5f05b958e6f1b884560f649cddfd961559849e202c0528c3c4372ffe1a6313f7b5a4b1aa2592f19010f5ced579a89554d27d1e30047c4bf41f81ecef4ea762d022077ee900004c31b8d9a798000000000000000000000000000000000000000000000000",
                "0x00000a81ff95bb7d0000000000000000",
                "0x"
            ],
            "witnesses": [
                "0x55000000100000005500000055000000410000002d953d0ef34140d87f865cd280f3f20fcd66fd683142d0b6f8d0ba033bf0225258418012c1d1afbbb6318393f2ec2d8908a73c2888a0f55a089594d81166295901",
                "0x",
                "0x"
            ]
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment