Signature generation and Spend APIs