oil-chat-api
API for interacting with the OIL chat protocol on Solana.
Features
- Instruction builders for all OIL chat instructions (SendMessage, ReplyToMessage, AddReaction, RemoveReaction)
- State types and account deserialization (Config, Message, Reaction)
- PDA derivation utilities
- SDK functions for common operations
- Support for Fogo Sessions
Usage
Add to your Cargo.toml:
[]
= "0.0.1"
= "0.6.6" # Required dependency
Example
use *;
use Pubkey;
// Derive a message PDA
let authority = new_unique;
let message_id = 0u64;
let = message_pda;
// Derive config PDA
let = config_pda;
// Build a SendMessage instruction
let instruction = send_message;
Program ID
The OIL chat program ID is: chatrzxmveLWpn9yVz7XycsevCGbfc1NwEPmsHZ3vV3
Documentation
Full documentation is available at https://docs.rs/oil-chat-api
License
Licensed under Apache-2.0