# [−] Trait rpc::v1::Raw

    pub trait Raw: Sized + Send + Sync + 'static {
        fn send_raw_transaction(&self, _: RawTransaction) -> Result<H256, Error>;
        fn create_raw_transaction(
            &self,
            _: Vec<TransactionInput>,
            _: TransactionOutputs,
            _: Trailing<u32>
        ) -> Result<RawTransaction, Error>;
        fn decode_raw_transaction(
            &self,
            _: RawTransaction
        ) -> Result<Transaction, Error>;
        fn get_raw_transaction(
            &self,
            _: H256,
            _: Trailing<bool>
        ) -> Result<GetRawTransactionResponse, Error>;

        fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... }
    }

Parity-bitcoin raw data interface.

## Required Methods

### `fn send_raw_transaction(&self, _: RawTransaction) -> Result<H256, Error>`

Adds transaction to the memory pool && relays it to the peers. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "sendrawtransaction", "params": ["01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac00000000"], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/

### `fn create_raw_transaction(
&self,
_: Vec<TransactionInput>,
_: TransactionOutputs,
_: Trailing<u32>
) -> Result<RawTransaction, Error>`

Create a transaction spending the given inputs and creating new outputs. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "createrawtransaction", "params": [[{"txid":"4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b","vout":0}],{"1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa":0.01}], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/

### `fn decode_raw_transaction(
&self,
_: RawTransaction
) -> Result<Transaction, Error>`

Return an object representing the serialized, hex-encoded transaction. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "decoderawtransaction", "params": ["01000000010000000000000000000000000000000000000000000000000000000000000000ffffffff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac00000000"], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/

### `fn get_raw_transaction(
&self,
_: H256,
_: Trailing<bool>
) -> Result<GetRawTransactionResponse, Error>`

Return the raw transaction data. @curl-example: curl --data-binary '{"jsonrpc": "2.0", "method": "getrawtransaction", "params": ["4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"], "id":1 }' -H 'content-type: application/json' http://127.0.0.1:8332/

## Provided Methods

### `fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>`

Transform this into an `IoDelegate`, automatically wrapping the parameters.

## Implementors

###

`impl<T> Raw for RawClient<T> where T: RawClientCoreApi,`

[src]

####

`fn send_raw_transaction( &self, raw_transaction: RawTransaction ) -> Result<H256, Error>`

[src]

####

`fn create_raw_transaction( &self, inputs: Vec<TransactionInput>, outputs: TransactionOutputs, lock_time: Trailing<u32> ) -> Result<RawTransaction, Error>`

[src]

####

`fn decode_raw_transaction( &self, _transaction: RawTransaction ) -> Result<Transaction, Error>`

[src]

####

`fn get_raw_transaction( &self, _hash: H256, _verbose: Trailing<bool> ) -> Result<GetRawTransactionResponse, Error>`

[src]

####

`fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>` |

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)