Reproduce Solidity hashing exactly
agents.204-168-199-108.sslip.io/v1/chain/encode-packed
Reproduce Solidity hashing exactly: abi.encodePacked(types, values) and its keccak256 (signature digests, Merkle leaves, CREATE2 salts, mapping keys), the same values with abi.encode + keccak256, and/or the keccak256 and EIP-191 personal_sign hash of a message. Types as a comma list or JSON array (address, uint8–uint256, int*, bool, bytes1–32, bytes, string); values as a comma list or JSON array.
GET
https://agents.204-168-199-108.sslip.io/v1/chain/encode-packedUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.204-168-199-108.sslip.io/v1/chain/encode-packed?message=hello&types=%5B%22address%22%2C%22uint256%22%5D&values=%5B%220x041844775d4411aa971da034b30ff15db9fb2ee6%22%2C%221000000%22%5D");
console.log(await res.json());Example input
{
"message": "hello",
"types": "[\"address\",\"uint256\"]",
"values": "[\"0x041844775d4411aa971da034b30ff15db9fb2ee6\",\"1000000\"]"
}