Skip to content

Instantly share code, notes, and snippets.

@bogdan
Last active January 26, 2021 13:10
Show Gist options
  • Save bogdan/e91817c876799aa96757a3d6f647f8a0 to your computer and use it in GitHub Desktop.
Save bogdan/e91817c876799aa96757a3d6f647f8a0 to your computer and use it in GitHub Desktop.
GET /resellers/<name>/txs/messageToSign
type MetaTxMethod = 'resolveTo' | 'reconfigure' | 'setMany' | 'transferFrom';
type MetaTxParams<T extends MetaTxMethod> = {
keys: string[],
values: string[],
} | {to: string} |
Req: {
method: MetaTxMethod,
domain: string,
params: MetaTxParams<T>
}
Res: {
message: string,
domain: string,
namehash: string,
}
POST /resellers/<name>/txs/meta
Req: {
method: MetaTxMethod,
domain: string
signature: string,
params: MetaTxParams,
}
Res: {
tx: {StandardSerialization}
}
{
errors: []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment