0.2.7-O • Published 4 months ago

@orao-network/solana-vrf v0.2.7-O

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months 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.2.7-O

4 months ago

0.2.6-O

1 year ago

0.2.5

1 year ago

0.2.3

2 years ago

0.2.4

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago