Skip to content

Anchor IDL

Marinade's programs publish their Anchor IDL on chain. Fetch one with the Anchor CLI. No Anchor workspace is needed, this reads an account.

anchor init idl
cd idl
anchor --provider.cluster mainnet \ 
       idl fetch MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD -o marinade-idl.json

Available IDLs

Every program below serves a live on-chain IDL on mainnet-beta. Substitute the program ID into the command above.

Program Program ID On-chain IDL account
Liquid Staking MarBmsSgKXdrN1egZf5sqe1TMai9K1rChYNDJgjq7aD 9jWC3EixD3D7ChMrrSRw3opnGHQ8YxZGJqGkzcup3tAn
Native Staking Proxy mnspJQyF1KdDEs5c6YJPocYdY1esBgVQFufM2dY9oDk 7ByYxYesMj598eFug4AcFqYyFnC9m6SVEjyibGhmvSQq
Validator Bonds vBoNdEvzMrSai7is21XgVYik65mqtaKXuSdMBJ1xkW4 Du3XrzTNqhLt9gpui9LUogrLqCDrVC2HrtiNXHSJM58y
Directed Stake dstK1PDHNoKN9MdmftRzsEbXP5T1FTBiQBm1Ee3meVd 4vePs1gTLB2jT8cSLsMEswiAzGR2zJaLu1BfXacS3HLp

The IDL account column is informational. You do not need it for anchor idl fetch, which derives the address from the program ID.


Next Steps