Skip to main content

Overview

Allows the client to sign a smart contract. Note: Neurons are federated. You can sign contracts created on other neurons through this API on the neuron you have your account on. Federated means that the neurons interconnect to share authorized information, when requested, and permitted.

HTTP request

POST /Agent/Legal/SignContract

Authentication

Requires a valid JWT bearer token.

Request (JSON)

{
	"keyId": Required(Str(PKeyId)),
	"legalId": Required(Str(PLegalId)),
	"contractId": Required(Str(PContractId)),
	"role": Required(Str(PRole)),
	"nonce": Required(Str(PNonce)),
	"keySignature": Required(Str(PKeySignature)),
	"requestSignature": Required(Str(PRequestSignature))
}

Input parameters

ParameterDescription
PKeyIdIdentity of key to use for signing the contract. It must correspond to the key used when signing the Legal Identity application that will be used to sign the contract.
PContractIdID of smart contract to sign.
PLegalIdIdentity of the Legal Identity that will be used to sign the smart contract.
RoleFor what role the signature will be made.
PNonceA unique random string, at least 32 characters long, with sufficient entropy to not be reused again. If reused, an error will be returned.
PKeySignatureCryptographic signature of the key ID, using the key password.
PRequestSignatureCryptographic signature of the requesut, using the account password.

Response (JSON)

{
	"Contract": Required(PContract)
}

Response parameters

ParameterDescription
PContractUpdated Smart Contract object with the signature.

Notes

This endpoint uses the request schema notation described in Pattern matching.