Raw Transactions and Gnosis Safe APIs

Hello!

I was trying to find a way to post an arbitrary safe transaction (from my PC or server, does not matter) that would prompt a user to sign this transaction in the Gnosis Safe mobile app and browser extension.

Seems like I can only post transaction on-chain in GnosisSafe contract (using method execTransaction) if it is signed by two signers already, so it appears I need to use Gnosis API.

Also, seems like there are at least two Gnosis APIs:

  1. Relay service (https://safe-relay.staging.gnosis.pm/api/v1/)
  2. Notification service (https://safe-notification.staging.gnosisdev.com/api/v1/)

But I could not find any documentation except swagger, which does not explain much. Are these APIs open for public use and if there are any docs? In particular, how to use notifications API to send a signed message to request a transaction signature from mobile app and browser extension? Also how to format signatures for Relay API? Does it require decimal integer numbers?

practically the simplest way to do it is to use https://www.mycrypto.com and “log in” with “Web3”/Metamask. This should be compatible with the Safe plugin.

Here you can do arbitrary transactions: https://www.mycrypto.com/contracts/interact

Thanks, I made it work!

BTW, do you know when eth_signTypedData is going to be available?