0.4.0 • Published 1 year ago

@orao-network/solana-vrf v0.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

VRF v2 JS SDK

Library to interact with orao-vrf smart contract on Solana network.

Provides interface to request for a verifiable randomness (Ed25519 Signature) on the Solana network.

Usage examples

CPI example tests are based on this SDK.

Randomness request

const provider = AnchorProvider.env();
const vrf = new Orao(provider);

// Request using a random seed.
const [seed, tx] = await vrf.request().rpc();
console.log("Your transaction is " + tx);

// Await fulfilled randomness (default commitment is "finalized"):
const randomness = await vrf.waitFulfilled(seed);
console.log("Your randomness is " + randomness.fulfilled());
0.4.0

1 year ago

0.3.0

1 year ago

0.2.7-O

2 years ago

0.2.6-O

2 years ago

0.2.5

2 years ago

0.2.3

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago