I found windows-based instructions for this, and looking to do it on mac. Problem is I know nothing about Windows Powershell.
Could someone help translate the following, suitable for mac terminal?
$ENV:CARDANO_NODE_SOCKET_PATH = (Get-ChildItem \\.\pipe\ | Where-Object {$_.name -like "cardano-node*"}).FullName
Run this to check to see if the command worked.
$ENV:CARDANO_NODE_SOCKET_PATH
You should see something like
\.\pipe\cardano-node-mainnet.12768.1
Now execute the next command to start the Cardano Submit API
.\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SOCKET_PATH --config .\tx-submit-mainnet-config.yaml --port 8090
You should see
Running server on 127.0.0.1:8090
To clarify from the above, if I export an env var, what should 'something here' be on mac/linux?
export CARDANO_NODE_SOCKET_PATH='something here'
As for the command to execute, I think it should just be:
.\cardano-submit-api --mainnet --socketpath CARDANO_NODE_SOCKET_PATH --config tx-submit-mainnet-config.yaml --port 8090
Only bit I'm stuck with is what the actual env var is or how it is being set above.