open-index/open-npm huggingface dataset:
npm package: @joltz/bridge-embed
Description: Joltz Bridge Embed
Latest version: 0.0.3

# `@joltz/bridge-embed`

```ts
import { Swap } from "@joltz/bridge-embed";

function App() {
	return (
		<div className="w-full h-full flex justify-center items-center">
			<div className="w-2/3 h-full py-8">
				<Swap privyAppID="YOUR-PRIVY-APP-ID" solanaRpcUrl="YOUR-SOLANA-RPC-URL" sparkAddress="PREFILL-SPARK-ADDRESS" />
			</div>
		</div>
	);
}
```
npm package: @joltz/bridge-sdk
Description: Joltz Bridge
Latest version: 0.0.5

# `@joltz/bridge-sdk`

## Create a quote
Estimates costs & provides the steps needed to bridge.

```js
import { Client } from "@joltz/bridge-sdk";

const client = new Client(wallet); // Wallet must be an `ethers.wallet`.

const quote = await client.quote({ 
	inputChainID: 1, // 1 = ethereum
	inputToken: "0x0000000000000000000000000000000000000000", // 0x000.. = ETH
	amount: (0.0001 * 1e18).toString(), // 0.0001 ETH
	address: wallet.address, // Sending address (used for refunds)
	sparkAddress: "sp1pgss8m8gqwmrem7zef7h5yusdznxmrrm46vjnaq0tfr0ljanmcaw8z9qtxsja9" // Recipient address
});
```

## Execute a quote
```js
// Execute the quote, returns the txhash from input transaction.
const txhash = await c.exec(quote);
```

## Query a quote
Returns the quote details and status.

```js
const status = await client.queryQuote(quote.id);
```

## List supported currencies
```js
const currencies = await client.currencies();
```