@metaplex-foundation/umi-rpc-web3js
Version:
An RPC implementation relying on Solana's web3.js
13 lines (10 loc) • 375 B
JavaScript
import { createWeb3JsRpc } from './createWeb3JsRpc.mjs';
function web3JsRpc(endpointOrConnection, rpcOptions) {
return {
install(umi) {
umi.rpc = typeof endpointOrConnection === 'string' ? createWeb3JsRpc(umi, endpointOrConnection, rpcOptions) : createWeb3JsRpc(umi, endpointOrConnection);
}
};
}
export { web3JsRpc };
//# sourceMappingURL=plugin.mjs.map