Build a DeCharge Machine
git clone https://github.com/dephy-io/dephy-vending_machine-examples.gitHow to Run Locally
Messaging
pub enum DephyDechargeMessage { Request { to_status: DephyDechargeStatus, reason: DephyDechargeStatusReason, initial_request: EventId, payload: String, }, Status { status: DephyDechargeStatus, reason: DephyDechargeStatusReason, initial_request: EventId, payload: String, }, }let filter = Filter::new() .kind(EVENT_KIND) // Custom kind 1573 .since(started_at) .custom_tag(SESSION_TAG, ["dephy-decharge-controller"]) .custom_tag(MENTION_TAG, [machine_pubkey.to_hex()]); let sub_id = relay_client.subscribe(started_at, [machine_pubkey]).await?;
Building Controller
Solana Interaction
Last updated

