pub fn create_full<C, P>(deps: FullDeps<C, P>) -> jsonrpc_core::IoHandler<sc_rpc::Metadata>
where
	C: ProvideRuntimeApi<Block>,
	C: HeaderBackend<Block> + HeaderMetadata<Block, Error = BlockChainError> + 'static,
	C: Send + Sync + 'static,
	C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
	C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
	C::Api: BlockBuilder<Block>,
	P: TransactionPool + 'static,
{
	use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi};
	use substrate_frame_rpc_system::{FullSystem, SystemApi};

	let mut io = jsonrpc_core::IoHandler::default();
	let FullDeps {
		client,
		pool,
		deny_unsafe,
	} = deps;

	io.extend_with(SystemApi::to_delegate(FullSystem::new(
		client.clone(),
		pool,
		deny_unsafe,
	)));

	io.extend_with(TransactionPaymentApi::to_delegate(TransactionPayment::new(
		client.clone(),
	)));

	// Extend this RPC with a custom API by using the following syntax.
	// `YourRpcStruct` should have a reference to a client, which is needed
	// to call into the runtime.
	// `io.extend_with(YourRpcTrait::to_delegate(YourRpcStruct::new(ReferenceToClient, ...)));`

	io
}
/// Instantiate all full RPC extensions.
Instantiate all full RPC extensions.
Instantiate all full RPC extensions .
pub fn create_full<C, P>(deps: FullDeps<C, P>) -> jsonrpc_core::IoHandler<sc_rpc::Metadata>
where
	C: ProvideRuntimeApi<Block>,
	C: HeaderBackend<Block> + HeaderMetadata<Block, Error = BlockChainError> + 'static,
	C: Send + Sync + 'static,
	C::Api: substrate_frame_rpc_system::AccountNonceApi<Block, AccountId, Index>,
	C::Api: pallet_transaction_payment_rpc::TransactionPaymentRuntimeApi<Block, Balance>,
	C::Api: BlockBuilder<Block>,
	P: TransactionPool + 'static,
{
	use pallet_transaction_payment_rpc::{TransactionPayment, TransactionPaymentApi};
	use substrate_frame_rpc_system::{FullSystem, SystemApi};
	let mut io = jsonrpc_core::IoHandler::default();
	let FullDeps {
		client,
		pool,
		deny_unsafe,
	} = deps;
	io.extend_with(SystemApi::to_delegate(FullSystem::new(
		client.clone(),
		pool,
		deny_unsafe,
	)));
	io.extend_with(TransactionPaymentApi::to_delegate(TransactionPayment::new(
		client.clone(),
	)));
	// Extend this RPC with a custom API by using the following syntax.
	// `YourRpcStruct` should have a reference to a client, which is needed
	// to call into the runtime.
	// `io.extend_with(YourRpcTrait::to_delegate(YourRpcStruct::new(ReferenceToClient, ...)));`
	io
}
pub fn create_full < C , P > ( deps : FullDeps < C , P > ) -> jsonrpc_core :: IoHandler < sc_rpc :: Metadata > where C : ProvideRuntimeApi < Block > , C : HeaderBackend < Block > + HeaderMetadata < Block , Error = BlockChainError > + ' static , C : Send + Sync + ' static , C :: Api : substrate_frame_rpc_system :: AccountNonceApi < Block , AccountId , Index > , C :: Api : pallet_transaction_payment_rpc :: TransactionPaymentRuntimeApi < Block , Balance > , C :: Api : BlockBuilder < Block > , P : TransactionPool + ' static , { use pallet_transaction_payment_rpc :: { TransactionPayment , TransactionPaymentApi } ; use substrate_frame_rpc_system :: { FullSystem , SystemApi } ; let mut io = jsonrpc_core :: IoHandler :: default ( ) ; let FullDeps { client , pool , deny_unsafe , } = deps ; io . extend_with ( SystemApi :: to_delegate ( FullSystem :: new ( client . clone ( ) , pool , deny_unsafe , ) ) ) ; io . extend_with ( TransactionPaymentApi :: to_delegate ( TransactionPayment :: new ( client . clone ( ) , ) ) ) ; // Extend this RPC with a custom API by using the following syntax. // `YourRpcStruct` should have a reference to a client, which is needed // to call into the runtime. // `io.extend_with(YourRpcTrait::to_delegate(YourRpcStruct::new(ReferenceToClient, ...)));` io }
Instantiate all full RPC extensions.
Instantiate all full RPC extensions .
deps
FullDeps<C, P>