Create a new project
Create a new project:Install the Formance SDK
Install the Formance SDK:The Formance API relies on OAuth 2.0 for authentication.For more information, see OAuth 2.0.
The
client_credentials grant type requires a client ID and client secret. These are sensitive credentials that should not be exposed to the public. If you’re integrating Formance into a web application, use an OAuth flow that does not require a client secret, such as the authorization code grant.Hello World from the Formance Ledger
Replace the values with your API endpoint and credentials from the Authentication & Credentials Setup guide.
main.go with the following content: