A dispute the buyer and the seller settle between themselves.
Dispute, Sinera or award
15%
A dispute decided through the Sinera route or by an independent award.
read-atom.ts
import { createPublicClient, http } from "viem";import { createAtpClient, type Deployment } from "@sinera/atp-sdk"; // The RPC endpoint. Host: bsc-testnet-rpc.publicnode.com; use your provider's full URL.const publicClient = createPublicClient({ transport: http("https://bsc-testnet-rpc.publicnode.com"),}); // The pinned deployment: every value is from this page. A runtime hash is the Keccak-256// of the module's deployed code; the SDK refuses to read if the chain does not match it.const deployment: Deployment = { chainId: 97n, configId: "0x7abc539244cf4517dc09c0ea4bb3458eddecf79a2c37249e740da03f3d5b36bd", deploymentBlock: 135492193n, modules: { AtomCore: { address: "0x5db8ce9604c03cc43a5dc9dc20fb76583ba5a46c", runtimeHash: "0x206d00cbdde264c6ebd40571b72a0c9b00b74ca98ab4a05930f2f39f302f5917" }, ProtocolConfigRegistry: { address: "0xe13eb0ab51da756a3595644b3b8ba9620131a181", runtimeHash: "0xfc2fd691bfb683ec0a077ded675eb11d78b6a326f8de7c560f83b9ffbde987fd" }, },}; const atp = createAtpClient({ publicClient, deployment }); // Reads default to finalized state.const atom = await atp.read.atom( { chainId: 97n, atomCore: "0x5db8ce9604c03cc43a5dc9dc20fb76583ba5a46c", atomId: "0x30797e1f193f1992328e26bf82a156e4b2318da2ab51a69cad962aa44083e6d1" }, { blockTag: "finalized" },);console.log(atom.state, atom.outcome);