OUTCRY is a chain built for trading. Its order book sits in genesis, and its blocks follow one public rule: cancels go first.
Watch one block: a take and the cancel of the same quote leave in the same moment, and the cancel executes ahead of it.
A take waits fifty milliseconds at the block builder, so a cancel sent within that time of it goes first.
You can run the same test with one button and read the block back.
https://t.co/9UIQuCJa70
OUTCRY's RPC parses your jsonParsed request only for accounts of programs it knows.
The SOL market's base vault came back parsed, as spl-token, type account. The SOL market account itself came back as base64, in an answer of 2,273,676 characters.
So your bot decodes the book's bytes itself.
https://t.co/4vev8vtPu6
Your bot can tell how far the OUTCRY chain is into its current epoch with one call.
Send getEpochInfo, and our RPC answered epoch 426, slotIndex 5355, slotsInEpoch 8192 and absoluteSlot 3437771.
slotIndex counts from 0 to 8191, so epoch 427 starts at slot 3,440,608: absoluteSlot minus slotIndex, plus slotsInEpoch.
https://t.co/4vev8vtPu6
OUTCRY's count market closed its seventh day at 00:00 UTC. The line was 934, the final count 806, and UNDER won.
After the close we ran the recount script against a Solana mainnet RPC and it printed 806. That is the same count the keeper settled on our chain.
Today's line is 806, yesterday's final count, and you can buy either side with test money.
Why: every line is a count already settled and recounted.
https://t.co/T0ev5mBXrR
Your resting order joins a SOL book on OUTCRY with room for 4,096 bids and 4,096 asks.
Read the first 40 bytes of GFHTycisKNPvoUvDyA8eVM2UQhqsJ7UyHqiiZzuNeVNc: after the discriminant and status, the market size params are 4096, 4096 and 8193. The last one is room for seats.
Why: Phoenix sets those sizes when it makes the market account, which is why the account reads 1,705,056 bytes.
https://t.co/4vev8vtPu6
If your bot asks OUTCRY's RPC for the SOL market account in base58, it gets an error, not the account.
Our RPC answered -32600, Encoded binary (base 58) data should be less than 128 bytes, please use Base64 encoding. The house's 128-byte seat still came back in base58.
So ask for base64, or base64+zstd, for any account over 128 bytes.
https://t.co/4vev8vtPu6
The name and symbol your wallet shows for $OUTCRY can no longer be changed.
Read the Metaplex metadata account of the mint naSwzowCDMeccFcZ3UGLQUhY9S3hRUJrtZw2vWFvout on Solana mainnet: name OUTCRY, symbol OUTCRY, seller fee 0, and isMutable false.
Why: Metaplex's metadata program refuses an update to metadata marked immutable, so no key can change its name, symbol or image link.
https://t.co/4vev8vtPu6
The fee on your OUTCRY take comes from its signatures unless you add a compute unit price.
The latest take's getTransaction shows one signature, a compute unit limit and no compute unit price, and meta.fee is 5,000 lamports.
Why: with no compute unit price, that fee was the base fee for its one signature.
https://t.co/4vev8vtPu6
Your bot's take on OUTCRY's book can ask for far fewer compute units. The latest take asked for 200,000 and used 22,059.
Read the latest fill from /api/trades with getTransaction: its first instruction sets a compute unit limit of 200,000, and meta.computeUnitsConsumed is 22,059, with 21,909 of them in the book program.
So your bot can simulate its take first and ask for a limit closer to what it uses.
https://t.co/4vev8vtPu6
One account gives your bot the OUTCRY chain's clock.
Send getAccountInfo for SysvarC1ock11111111111111111111111111111111 with jsonParsed, and our RPC gave slot 3,293,545, epoch 409 and unixTimestamp 1795707174, the chain's time in Unix seconds.
So your bot can compare its own clock with the chain's in one call.
https://t.co/4vev8vtPu6
If your bot reads OUTCRY RPC answers with JSON.parse, rentEpoch does not come back exact.
For a rent-exempt account like the house's seat, our RPC sends rentEpoch 18446744073709551615, the largest u64. JSON.parse turns it into 18446744073709552000.
Why: a JavaScript number holds integers exactly only up to 2^53 − 1, so read u64 fields as strings or with a big-integer parser.
https://t.co/4vev8vtPu6
Your $OUTCRY is a classic SPL Token on Solana, not a Token-2022 token.
Ask a Solana mainnet RPC for the mint naSwzowCDMeccFcZ3UGLQUhY9S3hRUJrtZw2vWFvout and its owner is the SPL Token program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA, with 82 bytes of data and no extensions.
Why: a mint under the classic SPL Token program cannot carry Token-2022 extensions, so no transfer fee or transfer hook can be added to your $OUTCRY.
https://t.co/4vev8vtPu6
One getProgramAccounts call finds your OUTCRY seat.
Ask for accounts of the book program PhoeNiXZ8ByJGLkxNfZRnkUfjvmuYqLR89jjFHGqdXY with dataSize 128, the SOL market GFHTycisKNPvoUvDyA8eVM2UQhqsJ7UyHqiiZzuNeVNc at offset 8, your key at offset 40, and dataSlice length 0.
For the house's key it gave one seat, 9mw7mpcfAoYRtp7w1orQWmqBsBVgbw8YFpHZF6Gohmfc, in 264 characters. For a key with no seat it gave an empty list.
https://t.co/4vev8vtPu6
If your bot checks lastValidBlockHeight on OUTCRY, compare it with getBlockHeight, not getSlot.
getLatestBlockhash gave a lastValidBlockHeight of 3,007,274, while getSlot answered 3,055,880 and getBlockHeight 3,007,125.
Why: on our chain the slot was 48,755 ahead of the block height, so a bot that compares with the slot treats every new blockhash as expired.
https://t.co/4vev8vtPu6
Before your bot sends a transaction, it can ask OUTCRY's RPC whether its blockhash can still be used.
Send isBlockhashValid. The blockhash getLatestBlockhash had just given answered true, and the blockhash of an older block answered false.
Why: a transaction signed with a blockhash that answers false can no longer land, so check its signature once and, if it has not landed, sign it again with a new blockhash.
https://t.co/4vev8vtPu6
Your bot should ask OUTCRY's RPC for rent instead of reusing Solana's figure.
getMinimumBalanceForRentExemption on our RPC answered 890,880 lamports for an account with no data and 2,039,280 for a 165-byte token account. Solana mainnet's RPC answered 650,240 and 1,488,440 for the same sizes today.
So ask each chain before you create an account on it.
https://t.co/4vev8vtPu6
Your bot can tell OUTCRY's RPC not to answer from a state older than a slot it has already seen.
Pass minContextSlot. Set far ahead, our RPC answered error -32016, Minimum context slot has not been reached; set to the current slot, it answered with the account.
Why: if your bot reads from more than one RPC node, it does not act on a read older than one it already used.
https://t.co/4vev8vtPu6
Your bot can fetch OUTCRY's whole SOL market account compressed.
Ask getAccountInfo with encoding base64+zstd, and our RPC sent 12,225 bytes instead of 1,705,056. Decompress them with zstd and you have the same bytes as the uncompressed answer.
Why: when we read it today, 99.4% of that account's bytes were 0, and runs of zeros shrink to very little.
https://t.co/4vev8vtPu6
Your bot can find the OUTCRY blocks that hold transactions without downloading them.
Send getBlock with transactionDetails set to signatures and rewards false, and our RPC gives each block's signatures only. For a block with one transaction today, that answer was 333 characters, and the full one was 7,104.
So fetch the full block only when its signatures matter to you.
https://t.co/4vev8vthEy
A take on OUTCRY's book needs no seat, but your resting quote does.
Your seat is the book program's PDA from the word seat, the SOL market and your key. The house's seat 9mw7mpcfAoYRtp7w1orQWmqBsBVgbw8YFpHZF6Gohmfc reads status 1, approved, and a fresh key has none.
The faucet adds the seat when your account has none, so the test money you take there can rest on the book.
Why: Phoenix lets only approved seats rest orders, and the book authority signs the approval.
https://t.co/sGa17gk4Ew
The $OUTCRY in your wallet is a Solana mainnet token, and the OUTCRY chain does not hold it.
Ask our RPC for naSwzowCDMeccFcZ3UGLQUhY9S3hRUJrtZw2vWFvout and the answer is null. Ask Solana mainnet's RPC and it is a mint with 6 decimals, no mint authority and no freeze authority.
Why: the chain runs on faucet test gas, and a $OUTCRY tier is read from your linked wallet on Solana, so your $OUTCRY stays on Solana.
https://t.co/4vev8vtPu6