@emblemvault/primitives-split
v0.4.2
Published
TypeScript SDK for the Emblem split primitive — programmable revenue routing across creator, treasury, affiliate, staker-pool (per reward stream), and platform recipients on Solana.
Maintainers
Readme
@emblemvault/primitives-split
TypeScript SDK for the Emblem split primitive — programmable revenue routing on Solana.
Recipients chain-submittable today: creator, treasury-PDA, platform, staker-pool-v2 (stake_v2 reward routing), and affiliate (requires an explicit affiliateWallet or fallbackWallet — there is no implicit creator fallback; see F-08).
Not yet settleable (the builder and assertChainSubmittable reject them; on-chain init_config also rejects with SplitDistributeNotYetWired): buyback-burn and lp-reinforce — deferred to v0.2.x until the keeper-execute path ships (F-06). The legacy staker-pool (v1) and distribution-vault recipients are tombstoned: v1 is decode-only (use staker-pool-v2; F-11) and distribution-vault was removed on-chain in Bundle 9+232.
Install
npm i @emblemvault/primitives-split @solana/web3.jsQuick start
import { Connection } from '@solana/web3.js';
import { EmblemSplitClient } from '@emblemvault/primitives-split';
const client = new EmblemSplitClient({
connection: new Connection(process.env.SOLANA_RPC_URL!),
// ... signer / program-id overrides
});
// build init / update / distribute instructions, sign, send.The Connection is caller-supplied — point at mainnet, devnet, surfpool, or any forked-mainnet endpoint.
License
Apache-2.0 © Emblem Vault
